Email This List Email This List Print This List Print This List

Import­ant setup steps for a new VM

  1. Install integ­ra­tion com­pon­ents
    Import-Module VirtualMachineManager
    Get-VM -Name YourVM | Select Name,VMAddition
  2. Enable RDP
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
    netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
    Reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v "UserAuthentication" /t REG_DWORD /D 0 /f
  3. Enable Ping
    netsh advfirewall firewall set rule name="File and Printer Sharing (Echo Request - ICMPv4-In)" new enable=yes
  4. Rename the com­puter from a Power­Shell con­sole. You will have to restart after­wards. PUT THE NAME IN ALLCAPS
    netdom renamecomputer $env:computername /newname:MYCOMPUTERNAME

admin has written 133 articles