First, make sure you've granted the "Create symlinks" permission to the relevant users, as detailed here: https://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:
runas /user:guest cmd
(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.
what to do if you don't have a login password? it is asking for one and if I leave blank it tells me blank password error... – ecoe – 2014-08-17T18:21:50.243
so, after finding out winblows broke the years and years old 'cd' syntax for cd /D, you get to type in the mklink syntax in the horrible contraption called 'cmd.exe' to find out you don't have privileges nad had to run as administrator first. Winblows sysadmin, the horror aaargh. – Michael Trouw – 2016-01-18T18:23:11.607
Didn't work. Instead I had to:
runas /user:administrator cmd
, and then in that new window, run themklink
command. Argh! – Ross Smith II – 2016-04-29T13:55:24.41719Symlinks are too dangerous for a normal user. LOL. I wish I could understand the considerations behind this. :-( – Notinlist – 2011-04-14T13:34:35.117
1My user is an administrator (there is no user called "administrator" on this machine.) but I still get "You do not have sufficient privilege to perform this operation." – Jonathan Hartley – 2012-01-08T18:35:38.027
4This answer, although helpful advice in the general case, seems to be exactly the opposite of the behaviour I'm observing: mklink only works for me when my user is not an administrator. Puzzling. – Jonathan Hartley – 2012-01-09T00:41:35.230