-
-
Save nironkoren/998392e33761673b78258ee5bc2a3ad3 to your computer and use it in GitHub Desktop.
Remote Desktop Auto Login Powershell Script
This file contains 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
echo "Connecting to 192.168.1.100" | |
$Server="192.168.1.100" | |
$User="Administrator" | |
$Password="AdminPassword" | |
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password | |
mstsc /v:$Server |
This file contains 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
# https://technet.microsoft.com/library/hh847748.aspx | |
# Run PowerShell as Administrator | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment