A Windows 11 laptop is randomly crashing, and you suspect that protected operating-system files have become corrupted. From an elevated Command Prompt, which command-line tool should you run to scan all protected system files and automatically replace any incorrect versions with the correct Microsoft versions?
The System File Checker command (sfc) with the /scannow switch scans every protected Windows system file and replaces corrupted or missing files with known-good copies stored in the WinSxS cache. CHKDSK checks disk integrity, GPUPDATE refreshes Group Policy, and NSLOOKUP queries DNS records-they do not repair system files.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are the benefits of using PowerShell scripts over batch files?
Open an interactive chat with Bash
What is the syntax for writing a basic .ps1 PowerShell script?
Open an interactive chat with Bash
What is the purpose of the .sh script files and where are they commonly used?