Configuring Symbolic Links with examples

Problem:

How do I configure Symbolic links within Windows?

Solution:

1. Open Secpol.msc and go to Local Policies>User Rights Assignment>Create Symbolic Links

Make sure that your user account is added.

2. Go to the folder in which you want to create the symbolic links and create a batch file as below:

SET target="C:\Backups\TargetFolder"
SET filter=*

forfiles /s /m %filter% /c "cmd /c IF @isdir==TRUE mklink /D %target%\@relpath %cd%\@relpath"

Leave a Reply

Your email address will not be published. Required fields are marked *