Feb 12

How force your laptop to use GPU enabled card instead of Intel HD Graphics adapter

Windows Fall Creator’s Update for windows 10 have introduced one very neat feature: GPU tabs & other GPU related information in Task Manager:

Pretty nice indeed!

Continue reading

Feb 08

Hyper-V error: External Ethernet adapter XYZ is already bound to the Microsoft Virtual Switch protocol

When you try to add a new vSwitch that is bound to a physical adapter in Hyper-V, you may receive the following error:

[Window Title]
Virtual Switch Manager for SOME-SERVER

[Main Instruction]
Error applying Virtual Switch Properties changes

[Content]
Failed while adding virtual Ethernet switch connections.

[Expanded Information]
External Ethernet adapter 'Intel(R) 82574L Gigabit Network Connection' is already bound to the Microsoft Virtual Switch protocol.

In this case go to network settings and find the affected adapter. Then in Properties remove the checkbox that binds Microsoft Virtual Switch protocol and press OK.

Try to create the vSwitch again.

Jan 10

Dynamic Objects in Active Directory

Sometimes we need to create users/groups/computers in Active Directory that will be used temporary (by a contractor, for testing etc.). The typical workflow is: Create > Use for a while > Delete. The deletion is manual and often these objects are being forgotten which poses some security risks.

It is little known fact that we can create the so called Dynamic objects (DOs, a.k.a. temporary objects) that get deleted from AD automatically when the associated TTL expires. Microsoft added this capability in Windows Server 2003. In fact the “Dynamic object” is an auxiliary class (OID = 1.3.6.1.4.1.1466.101.119.2). When linked to an object it adds some new attributes like the entryTTL (Entry-TTL) and ms-DS-Entry-Time-To-Die attribute.

Continue reading

Jan 05

WinRM would not listen on port 5985

The WinRM was configured to allow remote administration via a GPO but it wouldn’t let us connect with Enter-PSSession. The firewall rule was there passing the traffic on TCP port 5985.

Checking WinRM config showed something strange:

winrm enumerate winrm/config/listener

Listener [Source=”GPO”]
Address = *
Transport = HTTP
Port = 5985
Hostname
Enabled = true
URLPrefix = wsman
CertificateThumbprint
ListeningOn = null

So WinRM was actually configured but wasn’t listening on any network interface. Why?

Continue reading

Jan 03

What is Add-PrinterDriver actually used for?

As of Windows 8.1 / Server 2012 R2 there is one beautiful cmdlet -Add-PrinterDriver. It dramatically simplifies driver/printer installation.

Naturally you will be tempted to install a driver from an .inf file like this:

Add-PrinterDriver -Name "HP Universal Printing PCL 6" -InfPath "C:\Install\HP\hpcu160u.inf"

But you will be blamed:

Add-PrinterDriver: One or more specified parameters for this operation has an invalid value.

So it does not work as you/we may think. Sigh… So then what it is used for?

Continue reading