Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. An error occurred while attempting to connect to server "server.local". Check that the
  2. Virtual Machine Management service is running and that you are authorized to
  3. connect to the server.
  4.  
  5. Hyper-V encountered an error trying to access an object on computer 'server.local' because
  6. the object was not found. The object might have been deleted. Verify that the Virtual
  7. Machine Management service on the computer is running.
  8.  
  9. # sconfig.cmd: Enable "Configure Remote Management"
  10. # sconfig.cmd: Add Local Administrator
  11. # sconfig.cmd: Enabled Remote Desktop
  12. Enable-PSRemoting
  13. Enable-WSManCredSSP -Role server
  14. sc start vmms # Is this the "missing object"?
  15. netsh advfirewall set currentprofile state off # Let's try disabling firewall
  16.  
  17. Set-Item WSMan:localhostClientTrustedHosts -Value "server.local"
  18. Enable-WSManCredSSP -Role client -DelegateComputer "server.local"
  19. # Changed group policy: "Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-only server authentication" by doing: "Click Enable and add wsman/fqdn-of-hyper-v-host."
  20. # Disabled firewall
  21. # dcomcnfg > COM SECURITY > Access Permissions > Edit Limits > Anonymous Login > ALLOW Remote Access
  22. cmdkey /add:YOURSERVERNAME /user:USERNAMEONTHESERVER /pass:THEPASSWORDOFTHATUSER
  23.  
  24. Enable-PSRemoting
  25. Enable-WSManCredSSP -Role server
  26.  
  27. Enable-PSRemoting
  28. Set-Item WSMan:localhostClientTrustedHosts -Value server-1
  29. Enable-WSManCredSSP -Role client -DelegateComputer server-1
  30. Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V -All
  31. cmdkey /add:server-1 /user:Administrator /pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement