Posts tagged "failed"

The trust relationship between this workstation and the primary domain failed

There are multiple reasons for getting this event. It mostly happen when you restore a domain joined server or workstation.
Event details:

EventID: 5719
Source: NETLOGON

This computer was not able to set up a secure session with a domain controller in domain “” due to the following:
There are currently no logon servers available to service the logon request. This may lead to authentication problems. Make sure that this computer is connected to the network. If the problem persists, please contact your domain administrator.

ADDITIONAL INFO
If this computer is a domain controller for the specified domain, it sets up the secure session to the primary domain controller emulator in the specified domain. Otherwise, this computer sets up the secure session to any domain controller in the specified domain.

There are multiple ways to fix this.
Just log in with your LOCAL (not domain) credentials.

1.The PowerShell way (yeah):

2. With netdom.exe using your Windows Command Prompt:

3. With the GUI:
Change your domain membership to WORKGROUP, reboot. And join again, reboot.

General access denied error (0x80070005)

This issue occurs when the VM Security permissions on the VHDx are gone. Every VM has a unique ID. This unique ID is added to the VHDx security permissions for accessing / locking files.
There are 2 possible solutions to fix this.

Solution 1:

Detach the VHDx with the “remove” remove button in Hyper-v or Failover cluster manager. Just make sure you don’t remove the actual file!

Attach the VHDx again.
Now you can start the VM.

Solution 2:
  1. In this example is the virtual machine ID 684B169F-DB4A-493F-B34A-762E205AB1E4
  2. Go to the node wich host this VM
  3. Open an elevated command prompt
  4. icacls <path of vhd> /grant "NT VIRTUAL MACHINE\<Virtual machine ID>":(F)
  5. Start the virtual machine