Allow remote connections to this computer

When you deploy Windows Server 2012 using an ENGL Imaging Toolkit project for Windows Server 2012, you can include in a phase1-after.ps1 powershell script to enable 'Remote Connections':

 

Use these three commands in phase1-after.ps1:

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name UserAuthentication -Value 1
Set-NetFirewallRule -DisplayGroup 'Remote Desktop' -Enabled True

The first two commands take care of setting the correct registry keys.
'Set-NetFirewallRule' changes your firewall settings in order to allow using 'Remote Desktop' through your firewall.

 

 

 

Tags: ZENworks, , Windows Server 2012

Add comment