Thursday, October 8, 2009

Can you setup a defrag schedule on client computers with Windows Server 2003?

If not, is there any way to defrag computers on your domain through the server?



Can you setup a defrag schedule on client computers with Windows Server 2003?matchless



strComputer = "."



Set objWMIService = GetObject("winmgmts:\\" %26 strComputer %26 "\root\cimv2")



Set colVolumes = objWMIService.ExecQuery _



("Select * from Win32_Volume Where Name = 'D:\\'")



For Each objVolume in colVolumes



errResult = objVolume.Defrag()



Next



Or see the second article for how to do it via psexec (one liner).



WG



Can you setup a defrag schedule on client computers with Windows Server 2003?norton 2008



You can script it in 2003 and XP, but not 2000. Beyond scripting, you'd need to buy third party software such as Diskeeper, O%26O Defrag, or Perfect Disk.
To the best of my knowledge, using the task scheduler to schedule defrags can't be done and it's a bummer.



If you are an administrator you can remote manage a computer on the domain and run the defrag.



Right click My Computer



Manage



At the top where it says Computer Management (Local) Right Click



Select Connect to another Computer



Type in the computer name you want to manage



If it works, you will see the computer name in the Computer Management area instead of Local



From here you can run defrag

No comments:

Post a Comment