Solved

Defrag through GPO

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

You can provide a virtual interface for remote stakeholders in a SWOT analysis through a Google Drawing template. By making real time viewing and collaboration possible, your team can build a stronger product.
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
Simple Linear Regression
Progress

632 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