Try running command prompt as administrator and with the
/D switch instead.
mklink /D "\\networkDrv\users\Me\Force Tester" "\\networkDrv\users\Me\File Store\Lappers\ASL_ABL\Code\Force Tester"
mklink /? from command prompt to get more details of the options of this command.
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
Access Denied Fix
If you run the
mklink /D command as administrator and the
Link part of the command is a UNC network path and you get
Access Denied error message, then follow the below to potentially resolve this issue.
- On there server where (and/or on the Windows client PC you're getting the Access Denied error message when you run the command) the
Link part of the command is located, run this command as administrator on the server:
fsutil behavior query SymlinkEvaluation
- If you see
Remote to remote symbolic links are disabled. then run this command:
fsutil behavior set SymlinkEvaluation R2R:1
- You can run this from the location where you're running the MKLINK command and getting access denied whether on the Windows Server itself or the Windows client PC
- Now try running your command again and hopefully it works successfully now.
Link Reference: Access is denied on mklink