Computing.Net > Forums > Windows 2000 > Reset TS login via batch file autom

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Reset TS login via batch file autom

Reply to Message Icon

Name: hismail
Date: April 28, 2006 at 06:32:53 Pacific
OS: Windows 2000
CPU/Ram: 2gig/4gig
Product: Intel
Comment:

Hi
I would like to know how to reset a TS login via a batch file according to the error of the application.
I tried doing this ,but as you can see it only looks for " Discon" session from the query of my command:
qwinsta|find "Disc" > disc.lst
for /f "skip=1 tokens=2," %%i in (disc.lst) DO LOGOFF %%i

I need to set the errorlevel variable
Any ideas will be highly appreciated

thanks
Hamim



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: April 28, 2006 at 11:55:59 Pacific
Reply:

What is qwinsta?


=====================================
If at first you don't succeed, you're about average.

M2Go



0

Response Number 2
Name: hismail
Date: May 2, 2006 at 00:46:26 Pacific
Reply:

Qwinsta is a command used in DOS for TS logins
qwinstr will reset session ids

Thanks
Hamim


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


how do i get to safe mode... lost internet connection



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Reset TS login via batch file autom

rebooting Win2000 via batch file www.computing.net/answers/windows-2000/rebooting-win2000-via-batch-file/26882.html

Login Batch Files www.computing.net/answers/windows-2000/login-batch-files-/28193.html

Reboot via batch file www.computing.net/answers/windows-2000/reboot-via-batch-file/56031.html