cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
novasam
Engaged Sweeper III
It would be cool to link an action to the individual Hard Drive Fields, the same ones that show how full they are. That would remotely defrag that drive.


The action would go something like this
psexec \\<computer> defrag <drive>

The following would defrag all drives and consolidate free space.
psexec \\<computer> defrag /C /X

I haven't tested the syntax, just hoping to inspire some ideas
2 REPLIES 2
novasam
Engaged Sweeper III
Thank you,

I'm thinking of using defraggler's commandline tool instead, it seems to do the job better, its also small and will run from a network share.

I may use your runas configuration though, I have been trying to figure out how to elevate permissions like that. It should come in handy for my other commands, such as my WOL which need to be a different user to run against our branch servers.

I'll be sure to update this post when I get an action put together for this.
Pollak
Engaged Sweeper III
Here you go. The ShellRunAs is only require for people who are not logged in under a Domain Admin account, but have been issued one.


{actionpath}ShellRunAs PsExec \\{computer} c:\windows\system32\defrag.exe c: -f


Niles