CMD-ACCESS-DENIED

Command Prompt "Access is denied" in Command Prompt Applies to: Windows 7, Windows 10, Windows 11

What it means

The command you ran needs administrator privileges that the current Command Prompt window doesn't have.

Also seen as: Access is denied.

Quick fix steps

  1. Close the current window and reopen Command Prompt specifically as administrator — right-click it in the Start menu and choose "Run as administrator."
  2. Confirm the User Account Control prompt that appears when reopening it this way.
  3. Repair commands like sfc, chkdsk, and DISM specifically require this elevated access — running them without it is the most common cause of this exact message.
For the full step-by-step walkthrough, see How to Run Command Prompt as Administrator (and Why It Matters).

Frequently Asked Questions

Does this mean my account doesn't have admin rights at all?
Not necessarily — even an administrator account needs to explicitly run Command Prompt "as administrator" for certain commands; simply being an admin user isn't automatically the same as running elevated.
Is there a way to always run Command Prompt elevated by default?
Yes, through its shortcut properties (Advanced > Run as administrator), though it's generally better practice to only elevate when a specific command actually needs it.

Other error codes