Defrag

G

Guest

I have 2 questions about defraging a computer. Is there a way to schedule a
defrag of a computer using group policy and Windows 2003 AD? Is it best
practice to run a defrag in Safe Mode or does it matter if I setup a schedule
and have it run at night in normal made?

Thanks
 
T

Torgeir Bakken \(MVP\)

Scott said:
I have 2 questions about defraging a computer. Is there a way
to schedule a defrag of a computer using group policy and
Windows 2003 AD?

For the WinXP client computers, you could run Schtasks.exe in a
computer startup script (with a GPO) that runs as part of the boot
up process (before the user logs in). It runs under the system
context and has admin rights.

Use Schtasks.exe to put defrag.exe in a scheduled task running under
an account that have local administrator rights.

Schtasks.exe is a command line tool can create a scheduled task.

To avoid the job being recreated every time the computers reboot,
e.g. check for the .job file in the folder %windir%\Tasks\

Is it best practice to run a defrag in Safe Mode or does it matter
if I setup a schedule and have it run at night in normal made?

Running it under normal mode is fine...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top