HyperV

From My Notepad
Jump to: navigation, search

Storage Management

The command line tool diskpart must be used:

diskpart list disk

How to remote manage a standalone Hyper-V server

On the client:

Download and install Remote Server Administration Tools for Windows 7. Once installed, you will need to enable the Hyper-V Management feature.

Download the HVRemote script. Copy this to the server.

Run the following commands:

cscript hvremote.wsf /mode:client /mmc:enable
cscript hvremote.wsf /mode:client /anondcom:grant

On the server:

secedit /export /cfg C:\new.cfg

notepad C:\new.cfg

rem Edit the password complexity line.  Change the 1 to a 0.

secedit /configure /db C:\Windows\security\new.sdb /cfg C:\new.cfg /areas SECURITYPOLICY
netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes
netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow
cscript hvmremote.wsf /add:domain\user

OR

cscript hvmremote.wsf /add:user

Reboot:

Once all this has been run and you have configured the server name, workgroup and IP address of the Hyper-V server, reboot both the server and the client.

Verification:

On the client, from an elevated command prompt, run:

cscript hvremote.wsf /show /target:servercomputername

On the server, from an elevated command prompt, run:

cscript hvremote.wsf /show /target:clientcomputername

Controlling:

In order to successfully access the server from the client's Hyper-V manager, you must use the computer name. The easiest way to do this is to edit the hosts file on the computer you are accessing the system from.

Now open the Hyper-V Manager MMC and add the server name. You should now have complete management of the Hyper-V server.