To check and repair storage drive in windows using powershell follow this steps: Start PowerShell as administrator Repair-Volume C –Scan Repair-Volume C –OfflineScanAndFix Repair-Volume C –SpotFix Clearing junk del /f /s /q %windir%\prefetch\*.* & rd /s /q %windir%\temp & md %windir%\temp