5 replies
by gary mcp
Yes, you can shut pcs down automatically. The method used depends on the operating system on the workstations.
For Win9x/ME, you can run a batch file with the following commands:
rundll32.exe shell32.dll,SHExitWindowsEx n
where n is one, or a combination of, the following numbers:
0 - LOGOFF
1 - SHUTDOWN
2 - REBOOT
4 - FORCE
8 - POWEROFF
For NT, 2000, XP, you need to enable the AT service, then type at the command line:
AT "timetoshutdown" shutdown /l /y /c
/l turns off local pc
/y turns off any prompts
/c closes any open programs
OR, you can use one of the many third party solutions out there, some of which are free.
Hope This Helps,
Gary
by tellmewhy
by gary mcp
What you have to do is enable the task scheduler service on each pc. You can do this with a login script command: net start schedule.
The command to schedule a shutdown is
AT 17:30 shutdown /l/y/c /every m,t,w,th,f,s,su
This will shut down the pcs, closing all applications, with no interaction from the user, at 5:30 every day.
You could probably run this from a login script too.
Hope this helps,
Gary
by tellmewhy
by tellmewhy
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending