Link to home
Start Free TrialLog in
Avatar of chillepod
chillepod

asked on

Windows XP Reboot Script

Hello all,
One of my clients asked me a question and I couldn't answer.
This client has a Windows 2003 active directory domain.  He would like to setup a script or a GPO where each PC would be rebooted every night after the antivirus checks, etc.
Each user has their own user id and password so doing it via a program like RebootExWin would be a bit cumbersome.
Is their any nice freebie utility or nice script that can do this?
Any links would be great.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of dn0rm
dn0rm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of DonConsolio
DonConsolio
Flag of Austria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chillepod
chillepod

ASKER

Hello,
Would the force shutdown and restart log the user back on the PC?
Thanks
no it would not...it would simply restart the machine, do you need the user to be logged back on or would you prefer this not to happen?

i imagine that at the very least the machine would go into "lock" by the time they came back in in the morning if the reboots weren't happening so the machine would be in a pretty similar state - just no applications would be running (but this would be expected) due to the reboot :)

thanks and let us know if there are other questions.

You need to take into account the fact that you might cause user's to lose data. Its great that you can say "we warned you, so sorry" until the VP calls saying that he lost a days worth of critical work...

Then the crap hits the fan...

Just need to keep that in mind...

If you have to do this, consider a weekly thing over the weekend...
@ECHO OFF
SHUTDOWN -r -f -m \\192.168.1.1 -t 00
EXIT /B 0

type this script in the notepad file and save it with any name but extension should be .bat or .cmd and now schedule it with task scheduler. For detail on task scheduler can be access from following sites

http://support.microsoft.com/kb/308569
http://www.iopus.com/guides/winscheduler.htm 
Hi:

   Have you considered doing it using scheduled tasks?
That was what I was looking for.  Thanks