Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Remotely defrag with psexec and defrag

Posted on 2005-04-21
2
Medium Priority
?
862 Views
Last Modified: 2012-08-13
I'm trying to remotely defrag some PCs using psexec and defrag, but psexec doesn't seem to like the command line options of defrag.  Here is what I'm trying to run:

psexec.exe "defrag.exe c: -f" \\PCName
0
Comment
Question by:TASINetwork
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 13834384
You should use

psexec.exe \\PCName defrag.exe c: -f
0
 
LVL 2

Author Comment

by:TASINetwork
ID: 13834415
Figures I was making it too complicated!!!  Thanx!
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

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

810 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