Sunday, June 10, 2012

Remote Desktop (MSTSC.EXE) on Windows Hyper-V 2012 aka effective use of your 1 machine Hyper-V server/client testlab

What I did:

-Copied the following files from \Windows\System32 on my x64 Windows 8 machine:
    • mstsc.exe
    • mstscax.dll
    • d2d1.dll
    • d3d11.dll
    • msacm32.dll
    • dxgi.dll
    • en-US\mstsc.exe.mui
    • en-US\mstscax.dll.mui

-Created folder structure on USB stick (folder for exe and dll files and sub folder for MUI files with name en-US.

I was able to run MSTSC without moving these files to there "original" location on the Windows Hyper-V 2012  Server.


Hyper-V Server 2012 and remote hyper-v management in a workgroup (on windows 8 client)


For the Windows Hyper-V Server 2012 (=core)

  1. Enable remote config (sconfig.cmd option 4)
  2. Add a local administrator  (sconfig.cmd option 3)
    1. with same username and password as you are using on the Windows 8 Client 
    2. with other username and password (on client you need to use 

      cmdkey /add:<ServerName> /user:<UserName> /pass:<password>
       
       
For other remote admin like Event Viewer, Volume Management etc. some firewall rules need to be enabled:


netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
netsh advfirewall firewall set rule group="Remote Service Management" new enable=yes
netsh advfirewall firewall set rule group="Performance Logs and Alerts" new enable=yes
Netsh advfirewall firewall set rule group="Remote Event Log Management" new enable=yes
Netsh advfirewall firewall set rule group="Remote Scheduled Tasks Management" new enable=yes
netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes
netsh advfirewall firewall set rule group="Remote Desktop" 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
sc config vds start= auto
net start vds


(for readonly remote device manager I enabled GPO "Allow remote access to the Plug and Play interface", but still got an error trying to open a remote device manager)

For the Windows 8 Client

  1. Install Hyper-V Client Tools using "Turn Windows Feature on or off" (win-Q, search on "control panel", etc.)
  2. Start component services config (win-Q, search on "DCOMCNFG", right click and select "Run as administrator"
  3. Select "Console Root > Component Services > Computers > My Computer"
  4. Right click and select properties
  5. Select the tab "COM Security"
  6. Click on "Edit Limits" for the Access Permissions
  7. Allow remote access by setting the checkmark for the "ANONYMOUS LOGON"
For other remote admin like Event Viewer, Volume Management etc. you also need to open firewall on client using script above.

Tested this on the RC version of both server and client.