tedbass
(Ted Bass)
1
Description
Users that need to kick themselves off of a remote app session can use this batch file. All you need to do is enter the name of the server.
Source Code
@echo off
set server=SERVERNAME
set username=%username%
for /F "tokens=2" %%i in ('quser /server:%server% %username%') do set session=%%i
logoff %session% /server:%server%