Saturday, July 6, 2013

cmd dos log off all terminal server ts users connected or not

cmd dos log off all terminal server ts users connected or not



qwinsta|find "Disc" > disc.lst
for /f "skip=1 tokens=2," %i in (disc.lst) DO LOGOFF %i
qwinsta|find "Active" > active.lst
for /f "tokens=3," %i in (active.lst) DO LOGOFF %i

No comments:

Post a Comment