Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 7017a38

Browse files
committed
Update "Enable Remote Desktop" to leave Network Level Authentication enabled
1 parent e536019 commit 7017a38

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Win10.psm1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
995995
Function 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
10031002
Function 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

0 commit comments

Comments
 (0)