This repository was archived by the owner on May 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -991,19 +991,17 @@ Function EnableRemoteAssistance {
991991 Set-ItemProperty - Path " HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance" - Name " fAllowToGetHelp" - Type DWord - Value 1
992992}
993993
994- # Enable Remote Desktop w/o Network Level Authentication
994+ # Enable Remote Desktop
995995Function EnableRemoteDesktop {
996- Write-Output " Enabling Remote Desktop w/o Network Level Authentication ..."
996+ Write-Output " Enabling Remote Desktop..."
997997 Set-ItemProperty - Path " HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" - Name " fDenyTSConnections" - Type DWord - Value 0
998- Set-ItemProperty - Path " HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" - Name " UserAuthentication" - Type DWord - Value 0
999998 Enable-NetFirewallRule - Name " RemoteDesktop*"
1000999}
10011000
10021001# Disable Remote Desktop
10031002Function DisableRemoteDesktop {
10041003 Write-Output " Disabling Remote Desktop..."
10051004 Set-ItemProperty - Path " HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" - Name " fDenyTSConnections" - Type DWord - Value 1
1006- Set-ItemProperty - Path " HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" - Name " UserAuthentication" - Type DWord - Value 1
10071005 Disable-NetFirewallRule - Name " RemoteDesktop*"
10081006}
10091007
You can’t perform that action at this time.
0 commit comments