ORIGINALLY POSTED BY TALEN FOR THETAZZONE/TAZFORUM HERE
Do not use, republish, in whole or in part, without the consent of the Author. TheTAZZone policy is that Authors retain the rights to the work they submit and/or post…we do not sell, publish, transmit, or have the right to give permission for such…TheTAZZone merely retains the right to use, retain, and publish submitted work within it’s Network.
Here’s a pair of commands that will enable RDP on a remote workstation. The caveat is you have to run PowerShell.exe using your administrative credentials. You can use the –credential option on the first command, but not on the second (which is a drag).
|$Terminal = Get-WMIObject Win32_TerminalServiceSetting -computer <computerName>
This only works for Windows XP (and 2000), not for Vista. Which isn’t to say you can’t do the same for Vista, but since the security on RDP 6.0 is different, it’s a little more involved. I’ll dig it up and post it sometime…