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
456 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

18 Experts available now in Live!

Get 1:1 Help Now