Virtual machine cannot start - The security ID structure is invalid (0x80070539)

Applies to: Hyper-V Server 2012 R2Windows 8.1Windows 8.1 Enterprise


Starting an imported virtual machine under Hyper-V sometimes fails with an error message that states
The security ID structure is invalid (0x80070539)


This issue is caused when a virtual machine is moved from one environment to another, and Hyper-V cannot remove an invalid security ID from the virtual machine configuration as part of the import operation.


A user can reset the state of security IDs in the virtual machine configuration by adding a new, valid user ID. To do this, you will need to:
  1. Open an administrative PowerShell command window
  2. Run: Grant-VMConnectAccess -VMName "Name of VM that is not starting" -UserName "Domain and username of the current user"

The virtual machine should now be able to start successfully.