Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell: Stopping active defrag

$
0
0
Ok, so I can start up a defrag in powershell, but if after 'x' period of time it's not done, is there a graceful way to kill the active defrag?  I can do a returnvalue at said interval to get current status, and if not complete I want to send it a stop command.  Outside of killing the defrag.exe or dfrgntfs.exe process cold (not advisable), is there a method or call within powershell to do this?  Please, oh please, oh please, oh please?

Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>