Created
February 11, 2026 16:23
-
-
Save kntjspr/404d369a4cd1dfca4dff8ce673461576 to your computer and use it in GitHub Desktop.
rdp session disconnect for pyautogui
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
| for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( | |
| %windir%\System32\tscon.exe %%s /dest:console ) | |
| pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment