Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shutdown vbs with a defrag option

Status
Not open for further replies.

Liwi77

IS-IT--Management
Feb 1, 2009
1
NL
Hi,

I'm looking for a reboot script that includes a defrag of the c-drive before reboot of the server.

thks
Herman
 
You would need to start with a script to do the defrag. Use WMI to check for the defrag process to be running and wait. When you see it is no longer running, then do the shutdown.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top