Quantcast
Channel: Back in Hack » Windows Server 2008 R2
Viewing all articles
Browse latest Browse all 6

HOWTO Use Powershell to Enable Remote Desktop on another Computer

$
0
0
$remoteComputerName = "my_remote_computer"
# Connect to another computer and start the remote registry service 
( Get-WmiObject -computername $remoteComputerName Win32_Service -filter "Name='RemoteRegistry'").startservice()
( Get-WmiObject -computername $remoteComputerName Win32_Service -filter "Name='RemoteAccess'").ChangeStartMode('Manual') 
( Get-WmiObject -computername $remoteComputerName Win32_Service -filter "Name='RemoteAccess'").startservice()


Viewing all articles
Browse latest Browse all 6

Trending Articles