Skip to content

Instantly share code, notes, and snippets.

@johnkattenhorn
Created September 23, 2019 10:22
Show Gist options
  • Save johnkattenhorn/abd43492d05126ce5c416017335c7467 to your computer and use it in GitHub Desktop.
Save johnkattenhorn/abd43492d05126ce5c416017335c7467 to your computer and use it in GitHub Desktop.
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTsConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
(Get-WmiObject -class Win32_TSGeneralSetting -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").SetUserAuthenticationRequired(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment