Remotely managing Hyper-V hosts from workgroup computer

Posted: December 21, 2016 in Windows Server

On Hyper-V host open PowerShell as administrator:

Enable-PSRemoting

To allow remote access on public zones, enable firewall rules for CredSSP and WinRM:

Enable-WSManCredSSP -Role server

On workstation computer (from which we need to access Hyper-V host edit hosts file

and add ip addressess of Hyper-V hosts

1.PNG

From CMD (Run as admin) add Hyper-V hosts as trusted hosts:

winrm set winrm/config/client @{TrustedHosts="hyperv-01,hyperv-02"}

 

1.PNG

Add Hyper-V hosts credentials:

cmdkey /add:hyperv-01 /user:test\administrator /pass:Password01
cmdkey /add:hyperv-02 /user:test\administrator /pass:Password01

Add server to Hyper-V manager on workstartion computer (install it first)

1.PNG

Using PowerShell:

# Install only the PowerShell module
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Management-PowerShell
 
# Install the Hyper-V management tool pack (Hyper-V Manager and the Hyper-V PowerShell module)
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All

1.PNG

1.PNG

1.PNG

Advertisements
Comments
  1. Ronar says:

    Great Guide! Works perfect!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s