Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Windows XP Reboot Script

Posted on 2011-02-10
8
651 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:chillepod
8 Comments
 
LVL 3

Accepted Solution

by:
dn0rm earned 250 total points
ID: 34867640
you could create a batch file i imagine to run as a scheduled task with:

shutdown -f -r

that command run from a command line does a force shutdown (-f) and then a restart (-r)

would this do the trick?

let us know, thanks!
0
 
LVL 15

Assisted Solution

by:DonConsolio
DonConsolio earned 250 total points
ID: 34867649
use the "AT" scheduler to run the "shutdown.exe" utility

AT: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/at.mspx

you might try something like:
at \\computer 22:30 /every:M,T,W,Th,F,S,Su c:\WINDOWS\system32\shutdown.exe  -r -f
0
 

Author Comment

by:chillepod
ID: 34867700
Hello,
Would the force shutdown and restart log the user back on the PC?
Thanks
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 3

Expert Comment

by:dn0rm
ID: 34867705
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.

0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34867817
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...
0
 
LVL 11

Expert Comment

by:farjadarshad
ID: 34868471
@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 
0
 
LVL 3

Expert Comment

by:Guillermin-go
ID: 34870757
Hi:

   Have you considered doing it using scheduled tasks?
0
 

Author Closing Comment

by:chillepod
ID: 34871728
That was what I was looking for.  Thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Toshiba Laptop (WIN XP) will not start 6 82
netsh interface ip show interface in Windows XP 4 134
HP PC Hardware Diagnostics UEFI 11 156
Windows XP under Hyper-V Server 2016 15 32
If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question