Solved

Defrag through GPO

Posted on 2010-11-19
1
660 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
free project software 4 495
WSUS Project Plan and Installation 89 277
Non-disclosure agreement 4 116
Microsoft Project 2010 Error - There was a problem linking these tasks 6 158
3 Tips For Quarter Milers: A Sprinter's Understanding of Agile Software Development Two years ago, I wrote a blog entry about Agile software development (http://www.experts-exchange.com/blogs/mwvisa1/B_1770-Agile-Software-Development.html). At th…
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…

739 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