Share via

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. DaveM121 884.5K Reputation points Independent Advisor
    2022-09-16T18:40:15+00:00

    Hi Pallav,

    That work account would explain this problem, a work or school account connected to your PC imposes many restrictions on Windows operations

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-09-16T18:37:49+00:00

    Yes, I am the admin of this laptop.

    Yes, this laptop is connected to my work account and is Azure AD joined, enrolled in Intune.

    Was this answer helpful?

    0 comments No comments
  3. DaveM121 884.5K Reputation points Independent Advisor
    2022-09-16T18:32:14+00:00

    Hi Pallav,

    That is very strange, is your user profile an Administrator on the PC, and is there a work or school account linked to your PC, perhaps for software installation?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2022-09-16T18:28:34+00:00

    Thank you Dave for your suggestion.

    Yes, I am doing the same. Even I clicked on Open file location, created a shortcut on the desktop and under Advanced checked the option Run as administrator.

    Still, it does not work

    Was this answer helpful?

    0 comments No comments
  5. DaveM121 884.5K Reputation points Independent Advisor
    2022-09-16T18:23:41+00:00

    Hi Pallav,

    I am Dave, I will help you with this.

    What method are you using to run Command Prompt as Administrator,

    Is this the method you are using, you must right click the Command Prompt icon and select 'Run as Administrator' otherwise it will not run with administrator privileges, even if your account is an administrator account.

    Was this answer helpful?

    0 comments No comments