Solved

Defrag through GPO

Posted on 2010-11-19
1
654 Views
Last Modified: 2013-11-25
I have taken over a company IT department and there are about 300 PCs I need to run defrag on. Is there anyway to set this task in GPO. Or is there a third party product to accomplish this?
0
Comment
Question by:dynnd
1 Comment
 
LVL 15

Accepted Solution

by:
Lee Osborne earned 500 total points
ID: 34176693
You could create a batch file on your startup or logon script (or shutdown or logoff) which will schedule a task automatically -

schtasks.exe /create /SC ONCE /TN Defrag /TR "\"C:\windows\system32\defrag.exe\"c: -f" /ST 19:00:00 /SD 20/11/2010 /RU SYSTEM

/SC Once = Run the task once
/TN = The task name
/TR = The command to run
/ST = Start time
/SD = Start Date
/RU = 'Run as' user, i.e. SYSTEM or NT AUTHORITY\LOCALSERVICE

You could also specify '/U username' and '/P password' to run the task as a specific user.

Lee
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In Agile (http://en.wikipedia.org/wiki/Agile_software_development), time and again people ask this question "How would you estimate a release for a product?". When it comes from management they want to know the following: Calculate the man hours wh…
Agile and Scrum have almost become synonymous. Have you wondered what's the difference? Scrum is just one way to be Agile. It is the most popular which leads to the common confusion. Agile actually refers to a philosophy shared by group of developme…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now