I'm trying to run chkdsk from the command line and am receiving the following error message "Access Denied as you do not have sufficient privileges. You have to invoke this utility running in an elevated mode." The account has administrative rights. Do I need to be logged in as admin?
-
2Launch an elevated command prompt and then run chkdsk. – joeqwerty May 24 '14 at 18:00
-
1Next time first google :) – Mixxiphoid May 24 '14 at 19:12
-
1@shub It indeed belonged at the question and not in the answer :). – Mixxiphoid May 24 '14 at 19:24
You need to have an account that is an admin on your computer and run cmd As An Administrator:
Then you will be shown with a UAC dialog, if you are logged in as an Admin, click yes.
If not, then type in an Admin's username and, if the Admin has one (which it should ;)), their password.
Now use chkdsk
According to this link you need to run cmd as administrator in order to execute it.
Our first problem: CHKDSK requires that you not only be administrator, but that you run the program as administrator. The two are not the same...
The link explains it all.
-
2If you remove the "next time google" comment I will upvote your answer. – Ramhound May 24 '14 at 18:15
-
1The site clearly states one should search on the web first. ´ Have you thoroughly searched for an answer before asking your question?´ states the how to ask. So, I will not remove my comment. – Mixxiphoid May 24 '14 at 18:20
-
1
-
1@Ramhound I understand your point, I see Shub changed it already. It was never harsh intended. – Mixxiphoid May 24 '14 at 18:53
-
2Don't get me wrong. Your answer is good, you quote and link to the source, but the comment could have been done in a comment. Answers are for everyone. – Ramhound May 24 '14 at 18:56
A less common reason that you can see this error is if Windows is having trouble accessing the particular drive that you're attempting to check.
It will still provide the same error message suggesting that you need administrative privileges regardless of being logged in with Admin rights at an administrative command line.
Sometimes as simple as unplugging and reconnecting an external disk.