Created
April 28, 2021 20:28
-
-
Save karoltheguy/71ebf44099932f2bf0f5d59e78a21454 to your computer and use it in GitHub Desktop.
Exit RDP and modify the session to a "console" type
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
@echo off | |
for /f "tokens=3 usebackq" %%s in (`query user ^ | find /i "%username%"`) do (tscon %%s /dest:console /password:xxx) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only need to be an admin, no need for an actual password