Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Windows 10: How can I fix "access denied" when using mkdir

Writer Sophia Terry

This may be a stupid question but:

Using command prompt on windows 10, when I attempt to use the command "mkdir x" I always get "Access is denied". So, I have to run cmd as an administrator every time to bypass it. Is there a more efficient process because I have to allow cmd to make changes every time and then change the directory to the one I need. I'm always on my user profile which is already my computer's administrator.

The code I currently use is here:

C:\Users\Public\Desktop>mkdir x
1

1 Answer

The folder C:\Users\Public is not your own profile folder, but the one that changes all profiles.

This folder (and all subfolders) are considered computer folders, rather than user folders. Because it is a change on computer level (it affects the entire computer and all users), Administrative rights are required.

If you start command prompt as administrator, the command will work without error.

If you don't want to start command prompt as administrator, you can still make a folder on your own desktop, it just won't show up on all other users' desktop.

Type in the following command to go to your own desktop folder:

cd /d %userprofile%\desktop

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy