Solved

I need a script either bat or vbs that will log off all users from a win 2k3 server.

Posted on 2011-03-22
3
459 Views
Last Modified: 2012-06-21
I need a script that i could run as a scheduled task that will log off users from a win 2k3 server...
Thanks in advance
0
Comment
Question by:geoasher023
3 Comments
 
LVL 2

Expert Comment

by:seanyc111
ID: 35192303
type shutdown -i in cmd and it will open a gui giving you options of restarting, shutting down or logging off computers and you can add computers at the top

this will need user input each time but you can write a very simple vbs file that will inpput all the commands for u using oShell.sendkeys. i can even write the vbs file for u    

0
 

Author Comment

by:geoasher023
ID: 35192582
That would be awesome thanx
0
 
LVL 14

Accepted Solution

by:
robincm earned 125 total points
ID: 35208221
Microsoft already wrote this:
http://support.microsoft.com/kb/259436
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now