Few days ago have install Core Hyper-V server 2008 R2 on Desktop machine which has around 8 GB of RAM and assigned IP Address for it through DHCP.
Server is running fine with hyper-V manager but when I try to connect to it from another machine as it is CORE and no console based (less resources used by this) ,it gives me error
“You do not have the required permission to complete this task. Contact the administrator of the authorization policy for the computer”
John has nice post on this here .
Below are the steps what I have performed to get this working.
On Hyper-V : Disable the Firewall and allow remote desktop and WMI through firewall rules with command line given below:
netsh advfirewall set currentprofile state off
netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes
netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes
netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new enable=yes
netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes
On client machine :
If you already enabled DCOM permissions,you don’t have to do this step Jump to Step 2 :
Step 1 : Run “Component Services” manager and expand “Component Services – Computers – My Computer.
Right-click on “My Computer” and choose “Properties”.
Under “Access Permissions”, click “Edit Limits”.
Click “ANONYMOUS LOGON” and select “Allow” for “Remote Access”.
Step 2 : run the CMD with administator with below command line and you should know the password of Hyper-V computer.
cmdkey /add:Hyper-V-name /user:Hyper-V-Name\FirstLast /pass
Where Hyper-V-Name is name of the Hyper-V computer
and Firstlast is name of the administrator .
It prompts you to enter the password of the user of Hyper-V server …all done
CMDKEY: Credential added successfully.
Try now to connect to Hyper-V server remotely….
2 Comments
cmdkey /add:Hyper-V-name/user:Hyper-V-Name\FirstLast /pass
Should have a space before the /user
cmdkey /add:Hyper-V-name /user:Hyper-V-Name\FirstLast /pass
Thanks.Updated.