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:

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.

Feb 02

Running Adafruit Feather HUZZAH ESP8266 with external power supply (3.3V / 5V)

Usually you use a usb cable to power and programAdafruit Feather HUZZAH ESP8266 via the mini usb port:

But what if you want to use external 3.3V (or 5V) power supply? To which pin should you connect it?

Continue reading

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 = 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:

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

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

Continue reading