MINI
C:
/
Program Files (x86)
/
UltraViewer
/
Upload File:
files >> C:/Program Files (x86)/UltraViewer/CloseRDP.bat
@echo off setlocal :: Get the current session ID for /f "skip=1 tokens=3" %%s in ('query user %USERNAME% 2^>nul') do ( set SESSION_ID=%%s ) :: Check if SESSION_ID is set if "%SESSION_ID%"=="" ( echo Error: No session found for user %USERNAME%. exit /b 1 ) :: Log off the session %windir%\System32\tscon.exe %SESSION_ID% /dest:console endlocal
Copyright ©2021 || Defacer Indonesia