I was trying to use mklink command in cmd (i have Windows 7 os) I was logged on as administrator, but i got a " you do not have sufficient privilege to perform this operation" message. I used the same command in Vista, it worked ok. Any ideas why it does not work in Winows 7?
|
Try explicitly running the cmd shell as administrator. If that doesn't help, then try the runas command.
Quotes around the mklink command and its args are required. |
|||||||||||
|
|
type CMD, you will see CMD.exe in the list at start menu. Right click on it, select "Run as Administrator" |
|||
|
|
|
First, make sure you've granted the "Create symlinks" permission to the relevant users, as detailed here: http://superuser.com/a/125981/57697 Bizarrely, the "mklink" command will not work for me if my user is an administrator. It gives "You do not have sufficient privilege to perform this operation." To make it work, I then need to either remove my user from the administrators group, or run mklink from a cmd which has been run as a non-admin user such as guest:
(enable the guest account if it isn't already) Using this latter method, you'll also have to temporarily grant permissions for 'guest' to modify the location you're creating the symlink in, which in my case was my home directory, causing a flurry of error dialogs, but they seemed harmless. |
||||
|
|
|
In response to this not working for administrator accounts, I believe that Configuring symlink support in Win7 is relevant.
|
||||
|
|
|
Check to see the "secondary logon" service isn't disabled. |
|||||
|