troubleshooting Question

Shut down windows terminal and restart server with Dos prompt batch file

Avatar of ayazhoda
ayazhoda asked on
Operating SystemsMicrosoft DOSWindows Batch
10 Comments1 Solution1702 ViewsLast Modified:
Hi All

I've got a new strange task from big boss that "At the end of every working, every one must shut down computer in order to save electric and global warming issue... Interesting!"

therefore i have to write a batch file which close all terminal, if its not shutdown by users.  There are about 50 terminals. now i have not too many chance to try my script as test so please help and advice

I am using this

shutdown -s -f -m\\computername -c "Daily Shut Down"

Problem:

when ever user log off its synchronize from system,  My document folder which is map on server drive synchronize, if any error occur it show warning or error. when i try this script shutdown process stops and synchronize screen pop up with warning messege
Synchronization complete
warning occurred with some warning messages..........
which means i have to click OK to turnoff system.

and i am using this to restart my windows 2003 server SBS

shutdown -s -f -m \\Michael Computer -c "Daily Shut Down" -d up:125:1
[i cant try this on server, it must be correct if its wrong let me know, i have only one bullet for this]

for help i am using this http://www.computerhope.com/shutdown.htm
ASKER CERTIFIED SOLUTION
MSE-dwells

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros