A cloud-native solution that protects workloads across hybrid and multi-cloud environments with threat detection and security recommendations
To fix corrupted files and reset Windows when administrator permission blocks actions, use these steps in order:
- Run System File Checker (SFC)
- Open Start menu.
- Type
cmd. - Right‑click Command Prompt and choose Run as administrator.
- In the Command Prompt, run:
sfc /scannow - Wait until it reaches 100%.
- “Windows Resource Protection did not find any integrity violations.” – System files are OK.
- “Windows Resource Protection found corrupt files and successfully repaired them.” – Corruption was fixed.
- “Windows Resource Protection found corrupt files but was unable to fix some of them.” – Some files still damaged; manual repair or reinstall is needed.
- “Windows Resource Protection could not perform the requested operation.” – Run SFC again in Safe Mode and make sure the folders %WinDir%\WinSxS\Temp\PendingDeletes and PendingRenames exist.
- If SFC cannot fix everything, manually replace corrupted system files
- From the SFC log, identify the corrupted file path.
- Open an elevated Command Prompt (Run as administrator).
- Take ownership of the corrupted file:
Example:takeown /f <Path_And_File_Name>takeown /f C:\Windows\System32\jscript.dll - Grant administrators full access:
Example:icacls <Path_And_File_Name> /grant administrators:Ficacls C:\Windows\System32\jscript.dll /grant administrators:F - Copy a known good version of the file from another PC with the same Windows version or from a safe location:
Example:copy <Source_File> <Destination>copy E:\temp\jscript.dll C:\Windows\System32\jscript.dll
- Reset the PC while keeping personal files (if sign‑in and admin access are possible)
- Back up important data to external storage.
- Go to Settings → System → Recovery.
- Under Recovery options, select Reset this PC.
- Choose Keep my files to keep personal files but remove apps and settings.
- Choose one of:
- Cloud download – downloads a fresh copy of Windows (recommended if system files are badly corrupted).
- Local reinstall – reinstalls from files already on the PC (faster, but may not include latest updates).
- Follow the on‑screen steps until reset completes.
- Keep my files keeps personal files but removes apps and settings.
- Remove everything deletes all files, apps, and settings and is better if giving away or selling the PC.
- If reset or reinstall is needed for full repair
- If corruption persists after SFC and manual repair, use:
- Reset this PC → Remove everything for a full clean start, or
- Reinstall Windows using recovery drive or installation media (as described under Windows recovery options).
- Always back up any accessible data first, because reinstalling usually removes apps, settings, and often files.
- If corruption persists after SFC and manual repair, use:
If administrator permission prompts do not show a Yes option, the account in use may not be an administrator. In that case, sign in with an administrator account first or contact the device owner/IT admin to perform the SFC and reset steps.
References: