Modify symbolic links

Modifying symbolic links maintains users' access to documents already syncronized to every virtual desktop.
  1. Log in to a computer with a virtual desktop deployment.
  2. Adjust the target location of the symbolic links and run the script below to maintain symbolic links for the %userprofile%\\WatchDox and %userprofile%\\WatchDoxArchive folders.
    set wshShell= Wscript.CreateObject("WScript.Shell")
    
    'Sync symlink
    strCommand = "mklink /d ""C:\Users\%username%\WatchDox"" ""\\na1\OpenShare\Citrix\%username%\WatchDox\"" "
    RunCommand = wshShell.Run("cmd.exe /c " & strCommand, 1, vbTrue)
    
    'Sync Archive symlink
    strCommand = "mklink /d ""C:\Users\%username%\WatchDoxArchive"" ""\\na1\OpenShare\Citrix\%username%\WatchDoxArchive\"" "
    RunCommand = wshShell.Run("cmd.exe /c " & strCommand, 1, vbTrue)