Created
May 16, 2015 14:20
-
-
Save alimbada/c4f05073b457e4c661b7 to your computer and use it in GitHub Desktop.
Unlocks the screen on a remote Windows machine (so that I can stream games from it with Steam In-Home Streaming)
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
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$sessionid=((quser $env:USERNAME | select -Skip 1) -split '\s+')[2]; tscon $sessionid /dest:console" 2> UnlockErrors.log |
@kuroiokami did you check if Remote Desktop is enabled? Maybe it got disabled?
P.S. Sorry for the late reply. Github doesn't notify when comments are made on gists.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This worked great!! But now I can't use remote desktop anymore. I already rebooted once and same problem. Do you know what might be wrong?