Solved

Defrag through GPO

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to import Multiply html files in one Excel file in different sheets 13 1,984
bitbucket repo 8 112
File Manager 10 101
Preferred web request software 2 338
I worked at a US software company that used offshore contractors for ten years and offshore employees for three years. We had a positive experience and you can too.   When I interviewed people for positions in the US, I would tell them that we wor…
Read about why it is more lucrative for an IT company to participate in government projects.

740 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