• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

need network defrag tool to run from upstairs on all computers

I need a tool, without scripting if possible, to run defrag on remote computers. I'm lazy, I don't want to leave my desk. anything out there I can buy? I like graphical representations too. Probably looking at 200 computers or so. I want to be able to schedule the defrags and be able to kick 'em off individually if needed.

Actually, I'm not totally against a scripting solution.. I saw some here on the site and I've tried a couple calling a text file of machines but I couldn't get it to work right; even though the bat ran, and it says it was schedule on 5 test machines, I didn't see it in scheduled tasks on the target machines afterwards.

thanks for input.

Bryce.
0
BryceRichert
Asked:
BryceRichert
  • 7
  • 2
  • 2
  • +3
1 Solution
 
B HCommented:
it's not as graphical (er, no graphics) but here's a pretty easy way to do it from upstairs

once you have psexec.exe, you can execute this:
psexec -d \\* defrag.exe c: -f

(execute the process "defrag.exe c: -f" on all domain workstations and be quick about it)
0
 
BryceRichertAuthor Commented:
Let me see.

The -d makes it happen right away?

psexec runs the defrag utility that is already on the local computer on the c drive?... what does the 'f do?

Also, how can I run it on all domain workstations?

Thanks for your help.
0
 
BryceRichertAuthor Commented:
Do I need to put an /all on the end of that command?

how would I make sure it didn't send to servers? could I put exceptions on that somehow?
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
BryceRichertAuthor Commented:
Looks like something like this would work, but I need to know how to make sure it only runs on Sunday nights on a weekly basis

for /f %a in (c:\computers.txt) do schtasks /create /s %a /ru system /sc weekly /st 01:00:00 /tn DefragAndOff /tr "defrag c: -w -v & chkntfs c: & SHUTDOWN.EXE -s -t 0 -f"
0
 
pegla12Commented:
Or you can use something like PerfectDisk if you want u GUI interface with some more options and capabilities:

http://www.perfectdisk.com
0
 
BryceRichertAuthor Commented:
Thanks, I'll go that direction I suppose if I can' t get a script to work that would leverage what is already there. I'll need to shell out about 7-8 grand to get that going in our organization.
0
 
koolinCommented:
If you have group policy prefence client side extensions deployed you can schedule a task as part of your policy and give it the command line you decide on.  No scripting necessary.  Deploy to a group of computers or have it based on a user group.

Otherwise you could script as part of logon or startup what you had started doing above by using the schedule task command line to create a task on each machine with the defrag command line.

Group Policy Preferences info - http://support.microsoft.com/kb/943729
TechNet schtasks reference - http://technet.microsoft.com/en-us/library/cc772785(WS.10).aspx
0
 
BryceRichertAuthor Commented:
I'll check this out and get back here. thanks.
0
 
BryceRichertAuthor Commented:
after I read this I see that unfortunately we are in a 2003 environement.
0
 
koolinCommented:
Group policy preference will work on 2000 domains and above.  You just need to deploy the group policy preferences client to the XP machines which you can do through WSUS or even a normal group policy software installation.

I am running running group policy preferences on a 2003 active directory with mixed XP and 7 clients, and I have the defrag.exe scheduled task deployed to XP clients just like your looking for.

I searched around here on EE but couldn't find a good article, but here is the one I used when getting myself up and running.

http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Preferences-Get-Them-Running-Today.html

Notice the note in the article "Note:I did not mention ANYTHING about the Windows domain version; this can be achieved on Windows 2000 if you want."

I am sure if you wanted you could probably add in reporting to the scheduled task by having it write to a network share log file.

LInks to the XP 32/64 and 2003 32/64 group policy preferences client side extensions can be found in the article or the MS KB above.
0
 
pegla12Commented:
Also you might check this article, it could be interesting for you
http://articles.techrepublic.com.com/5100-10878_11-1059885.html
0
 
BryceRichertAuthor Commented:
cool guys, thanks. I'll read all this at work in the AM and try and get back here in a few days with what I was able to do. thanks.

Bryce.
0
 
Anyone3003Commented:
well as bryon said use  psexec from PsTools  i think  it is good for free use
use psexec -d \\* defrag
where
The psexec program connects to the remote windows computer and runs the defrag program. The "\\*" means that psexec will do this for every computer in the domain and the "-d" argument tells psexec to not wait and move on to the next computer.

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
0
 
B HCommented:
i'm pretty sure they got rid of the "defrag.exe" command in server operating systems, but as you said you can specify it from a list.txt file

your command above could be run one time to create the tasks (altho i think you might need && instead of &) and once scheduled they exist as local tasks...

or you could run this one command from a server with credentials, nightly/daily whenever you want to defrag:
pcexec -d @List.txt defrag.exe c: -f

where there exists a file you created called List.txt, which contains the computer names you want it to hit, one per line
0
 
BitsBytesandMoreCommented:
The best tool at network level... is DiskKeeper. It is and always has been the "Golden Kid" for this... it meets exactly your requirements in the question posted (and of course it is not free) :
http://www.diskeeper.com/diskeeper/admin/admin.aspx
Bits ...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now