Skip to content

Instantly share code, notes, and snippets.

@rohanrudra55
Created February 9, 2023 05:29
Show Gist options
  • Save rohanrudra55/e52241ee0ea8a69564cd2cbd9294676a to your computer and use it in GitHub Desktop.
Save rohanrudra55/e52241ee0ea8a69564cd2cbd9294676a to your computer and use it in GitHub Desktop.

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  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment