Last active
November 23, 2015 22:01
-
-
Save OSDTips/4cc2303ea54b6d0ac13e to your computer and use it in GitHub Desktop.
Enable-RemoteDesktop.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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