Automatic shutdown of windows XP with Warning message

I manage an IT computer lab that is only networked in the sense that files are shared; there isn't a server.  I would like to have a program of sorts that would warn users that the computer will shutdown @ 5:45, and then shutdown.  I tried writing a batch file for it which does shutdown windows, but it doesnt give any warning.
any ideas??
LVL 1
bjv211Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KaliKoderCommented:
Have you tried using the "net send" command in your batch script to send out a message to other machines ?
http://www.cezeo.com/tips-and-tricks/net-send-command/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bjv211Author Commented:
This looks promising, to warn the users, but do you know If i can schedule messages? (ie if I'm not in the lab)
0
KaliKoderCommented:
Hello bjv211,

Yes you can scheudle messages. Have you tried using the AT job scheduler in Windows ? You can goto Start -> Control Panel -> Scheduled Tasks -> Add Scheduled task , there you can add a scheduled task to be run at a specifc time of your choice, for example, you have a batch file that does what you need and schedule that batch file to run via the scheduled tasks option.

Thanks and Good Luck!
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

bjv211Author Commented:
yes thats what I did for the shutdown batch already!! Great!!, I am wondering if you can schedule messages in the same manner?
0
turbo76542Commented:
There is a command that you can use that does a remote shutdown or restart and will give a time that shows when the system will shut down.  You would just open the command prompt window and then type shutdown -i which would start a remote shutdown window.  You can use this to shut the system down from which you run it or do it across the network.  I'm not sure that this would work on a network that is not part of a domain but you could probably try to write a batch file to initiate this on a computer within your network.  Just give it a try on one of the systems to see how it works and that may give you an idea of what you can do to get this going for you.
0
bjv211Author Commented:
Ok maybe I'm being vague.  I've got the shutdown batch already scheduled and it works perfect. Everyday at 5:45 the computers shutdown.  My question now is can you schedule this message "Net Send" program to send messages at lik 5:42 to warn users.  This would be ideal if I'm out of the lab at 5:45.
0
KaliKoderCommented:
Yes, u scheduled a job to be run at 5:42 and all this job does is call a batch file, and run it. The batch file would have the net send command in it
0
Eagle6990Commented:
Just create a new batch file that runs 5 minutes before the shutdown or whatever your desired time is.

You could do
net send /users The server is preparing to shut down

or send to all of your users or you can use /domain:name or just plain old * to send to everyone.
0
bjv211Author Commented:
sweet i'll try it out asap tomorrow when I get in the office
0
bjv211Author Commented:
netsend works amazing....good work
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.