Logoff All users

  • Thread starter Thread starter Al
  • Start date Start date
A

Al

How can I safely script logging off all my terminal
service users that are connected. I know you can do
individual users but how can you do all of them?
 
Try this:

for /f "tokens=2" %i in ('qwinsta ^| find /i "listen"') do
echo y | rwinsta %i

-M
 
Back
Top