If you are working with Hyper-V or Docker for Windows and your Hyper-V or docker can’t be started due to the error:
An error occurred while attempting to connect to server “YOUR-PC-NAME”. Check that the Virtual Machine Management service is running and that you are authorized to connect to the server.
Hyper-V encountered an error trying to access an object on computer ‘ YOUR-PC-NAME ‘ because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running.
In this case, It’s possibly about Code flow guard (CFG) issue. You can try to turn CFG off to start Hyper-V instance.
1, Open “Window Security”
2, Open “App & Browser control”
3, Click “Exploit protection settings” at the bottom
4, Switch to “Program settings” tab
5, Locate “C:\WINDOWS\System32\vmcompute.exe” in the list and expand it
6, Click “Edit”
7, Scroll down to “Code flow guard (CFG)” and uncheck “Override system settings”
8, Start vmcompute from powershell “net start vmcompute”