Remotely defrag with psexec and defrag

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
LVL 2
TASINetworkAsked:
Who is Participating?
 
jkrCommented:
You should use

psexec.exe \\PCName defrag.exe c: -f
0
 
TASINetworkAuthor Commented:
Figures I was making it too complicated!!!  Thanx!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.