Windows Command Prompt

Anonymous
2022-09-16T17:49:19+00:00

If I open CMD as administrator and type sfc /scannow I get the error -> "You must be an administrator running a console session in order to use the sfc utility".

If I run chkdsk - it gives error -> "Access Denied as you do not have sufficient privileges or the disk may be locked by another process. You have to invoke this utility running in elevated mode and make sure the disk is unlocked."

However, if I open task manager, Click on File -> Run new task-> cmd -> check box "Create this task with administrative privileges". Everything works fine.

Can't understand why the normal CMD with elevated rights is not working as expected.

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

20 answers

Sort by: Most helpful
  1. Anonymous
    2022-09-19T11:35:34+00:00

    Yes it does

    Was this answer helpful?

    0 comments No comments
  2. Ramesh 179.6K Reputation points Volunteer Moderator
    2022-09-19T11:28:34+00:00
    1. Do you see the UAC consent dialog when attempting to run CMD as admin?
    2. Does it say "Administrator" in the CMD title bar?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-09-19T11:26:58+00:00

    Yes, I have opened the CMD like this only but still SFC does not work

    Was this answer helpful?

    0 comments No comments
  4. Ramesh 179.6K Reputation points Volunteer Moderator
    2022-09-19T11:20:10+00:00

    Hi,

    Does it say "Administrator" in the CMD title bar?

    Meanwhile, try this method to open CMD as admin.

    Click Start, type CMD

    In the search results, right-click Command Prompt and choose Run as administrator.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2022-09-19T07:00:35+00:00

    So, to use SFC utility, do I need to un-enroll my laptop and use it as a personal laptop?

    Was this answer helpful?

    0 comments No comments