Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 498
  • Last Modified:

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

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
geoasher023
Asked:
geoasher023
1 Solution
 
seanyc111Commented:
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
 
geoasher023Author Commented:
That would be awesome thanx
0
 
Robin CMSenior Security and Infrastructure EngineerCommented:
Microsoft already wrote this:
http://support.microsoft.com/kb/259436
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now