Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I make a batch file to logoff all users on a APP server 2

Status
Not open for further replies.

rocker40

IS-IT--Management
Apr 5, 2004
55
US
I have a application server (win2000) that I have 30 people logged into. I would like to create a batch file to run in task manager that would log off all users on that server without rebooting the server. Is that possible? I have done a lot of research and found ways to do this by writing one that would shut down the server but I would like to do it without rebooting.
Thank you
rocker40
 
You can turn off the server service with the net stop command, maybe that would work......
 
But don't forget to turn it back on again with net start ....
 
which service would that be?
I am sorry I am new to this batch writing.
 
would terminal services be the one I should turn off? I read thru all the services running and this seems to be the only one that would not allow someone to get in.
 
How are the users connecting? Are they using Terminal services or are they connecting through network shares?

Mark
 
They are coming in thru Terminal Services.
 
If you restart Terminal services, it should disconnect all users that are connected via TS.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top