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?
↧