IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Tech
Search Tech Group:

Advanced
-Collapse +Expand Tech Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KBComputer TechSoftware   Print This     
  From the March 2012 Issue of Prestwood eMag
 
Tech Software:
Restart Windows Computer Batch File
 
Posted 14 years ago on 3/23/2010
Take Away:

In a batch file, schecule DOS command shutdown. Use shutdown /? for specifics. Use net stop to kill services before hand if you wish. Use task scheduler to schedule the execution of the batch file.

KB102136

Restart Batch File

The following one line batch file restarts a Windows computer. You can use this to restart your Windows based computers.

shutdown /f /r /d p:"Nighly Batch Restart" /t 00

Remember, you can use the following help command to refine this command:

shutdown /?

Restart Exchange Server Batch File

The following batch file first stops the Exchange Server services, then restarts.

net stop "Microsoft Exchange Information Store" /y
net stop "Microsoft Exchange System Attendant" /y
net stop "Microsoft Exchange IMAP4" /y
net stop "Microsoft Exchange Routing Engine" /y
net stop "Microsoft Exchange POP3" /y
net stop "Microsoft Exchange Management" /y
 
sleep 5
 
shutdown /f /r /d p:"Nighly Batch Restart" /t 00

Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P157A1
Enter key:
KB Post Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #102136 Counter
8341
Since 3/23/2010
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2024 Prestwood IT Solutions.   [Security & Privacy]