Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

How to perform chkdsk.exe /r and defrag.exe by Powershell ?

$
0
0

Hi,

Do anyone inform me how to use powershell to perform chkdsk/r and defrag in schedule ?

Since, it warns the disk is locked or in use. and not allow to execute until next boot

thanks


Viewing all articles
Browse latest Browse all 2562

Trending Articles



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