Using Mklink to link one local folder to a mapped network drive “Access is denied on mklink”

Using Mklink to link one local folder to a mapped network drive "Access is denied on mklink"
Our setup… We need to link a folder (that not exits jet) in E:\  (local drive)  to a share .
In this case we need to create a  symlink to a network mapped drive…

Using Mklink to link one local folder to a mapped network drive "Access is denied on mklink"

First, we need to map the share with net use in permanent mode..
Run this command:
net use P: \\srvvc\storage\test /user:\administrator xxxxxxxxx  /persistent:yes
Now we need to verify the state of  remote symbolic links  and, if not, enable it.
Run this command :
fsutil behavior query SymlinkEvaluation

Using Mklink to link one local folder to a mapped network drive "Access is denied on mklink"

So we  have to enable it with this command :
fsutil behavior set SymlinkEvaluation R2R:1

Using Mklink to link one local folder to a mapped network drive "Access is denied on mklink"

At this point we can create a Symlink to a network mapped share with  this command:

mklink test p:\test

Using Mklink to link one local folder to a mapped network drive "Access is denied on mklink"

That’s it.

Leave a Reply

Your email address will not be published.