Skip to content

Instantly share code, notes, and snippets.

@OSDTips
Last active November 23, 2015 22:01
Show Gist options
  • Save OSDTips/4cc2303ea54b6d0ac13e to your computer and use it in GitHub Desktop.
Save OSDTips/4cc2303ea54b6d0ac13e to your computer and use it in GitHub Desktop.
Enable-RemoteDesktop.ps1
$obj = Get-WmiObject -Class "Win32_TerminalServiceSetting" -Namespace root\cimv2\terminalservices
if ($obj -eq $null) {return}
$obj.SetAllowTsConnections(1,1) | out-null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment