Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
468 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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