I am learning to use the command prompt in Windows 10. Some commands are running successfully, but some commands throw an error – “access denied as you do not have sufficient privileges.” But, I am logged in as an Administrator. Please help me to fix the issue.
How To Solve The “access Denied As You Do Not Have Sufficient Privileges” In The Command Prompt?
When you get this error – “access denied as you do not have sufficient privileges” you have to run the command prompt as an Administrator.
Method 1
a. Open Command Prompt as an Administrator.
b. Right-click on the Command Prompt after searching from the start menu.
c. Click on Run as administrator.
Method 2
a. Open This PC.
b. Right-click on the drive/ folder you are experiencing the error.
c. Open properties.
d. Open the Security tab.
d. Click on the Advanced button.
e. Click on Change near the owner label.
f. Enter your account name in the place of a new user.
g. Click on OK.
h. Come back to the Security tab.
i. Edit permissions.
j. Click on Full Control.
k. Save the changes.
l. Restart your device.
m. Run your command in the command prompt.
Method 3
a. Boot PC into safe mode.
b. Open the Command prompt as an Administrator.
c. Type sfc/ scannow and press enter.
d. Restart your device after the process completes.
e. Try to run your command in an elevated command prompt (Command prompt as an Administrator).