Joined: 15 Mar 2005 Posts: 532 Location: Missoula, MT
Posted: Thu, 13 Jul 2006 11:37:18 Post Subject: Force Defrag
Question for server people out there...
I'm trying to see if it's possible to send a force (or script or something) from a server that will cause all the clients (preferably a list of them ) to do a defrag. Does anyone know if this is possible...or, if so, where I could look to figure out how to do this?
Thanks,
LT _________________ " I reject your reality and substitute my own!" - Adam Savage - Mythbusters
Joined: 22 Aug 2003 Posts: 2234 Location: Neither Here, Nor There
Posted: Thu, 13 Jul 2006 12:57:19 Post Subject:
I've done this to all the WIndows machines I've build or maintained over the years... ....start a batch file that is copied to each machine.
1. open note pad:
2. copy below to it
@echo
defrag C: -f
3. save as "****.bat" (you pick name)
then run it as a scheduled task at any given time.
you can also run Disk Clean Up from same batch file.
1. go to each machine and Run:
"cleanmgr /sageset:15" (check all desired options)
2. add to batch file(preferably before defrag line):
"cleanmgr /sagerun:15"
I used to schedule work machines to run it during the employee's lunch, and private machines to run it after 4am. After that batch file runs a couple nites in a row, it only takes a few minutes to complete.
Joined: 19 Oct 2005 Posts: 2120 Location: New Jersey
Posted: Thu, 13 Jul 2006 13:14:44 Post Subject:
Just make sure it runs while it is not being used by someone. That's not hard if you schedule it at night, but then you have the chance they shutdown the pc every night. ugh users suck
Joined: 22 Aug 2003 Posts: 2234 Location: Neither Here, Nor There
Posted: Sat, 15 Jul 2006 19:35:06 Post Subject:
Modulok wrote:
Just make sure it runs while it is not being used by someone. That's not hard if you schedule it at night, but then you have the chance they shutdown the pc every night. ugh users suck
For those that did shut theirs down, I pinned to their start menu a shortcut for them to run it every once in a while. All my clients knew the benefits of a defrag'd and cleaned up system - so my shortcut to the batchfile made their lives easier.
Joined: 07 Aug 2005 Posts: 1255 Location: Computer
Posted: Sat, 15 Jul 2006 22:52:11 Post Subject:
It would be extremely easy with Novell/Netware Login Scripts, all you would have to do is put in for it to execute the defrag utility. 1 easy line of code. _________________ ABAP? What did you call me?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum