Solved

Defrag through GPO

Posted on 2010-11-19
1
658 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
open source software similar to visual paradigm 1 1,343
Functionality:  Waterfall vs. Agile 1 147
Good implementation proposal template for software 1 74
Verify person is in the US 6 201
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…
Documentation is a big contentious issue in Agile. There is a reason for this. When you start your presentation on Agile you start by going through the 4 statements of agile manifesto (https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&…

791 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