Symbolic link is lost after losing RDP session RRS feed

  • Question

  • I TS to a machine and on that machine create a symbolic link to \\tsclient\d\sharedfolder. While the session is established everything works fine. Then my client computer reboots. I can TS to the remote machine again and it can see \\tsclient\d\sharedfolder. But it can't see D:\sharedfolder. When I try to navigate to D:\sharedfolder I get back the error message "The device is not connected".

    So the steps are:

    1. mklink /d D:\sharedfolder \\tsclient\d\sharedfolder
    2. Disconnect
    3. Reconnect
    4. Error hit here.

    Since \\tsclient\d\ is back, is there a way to kick windows into retrying?

    Tuesday, August 18, 2015 5:45 PM

All replies

  • jader3rd,

    Start a new RDP session (after logging out from the current session). Then, create the a batch file containing these lines:

    net use \\tsclient\d\sharedfolder /delete /persistent:yes
    net use \\\tsclient\d\sharedfolder /delete
    net use D:\sharedfolder \\tsclient\d\sharedfolder

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact

    Thursday, August 20, 2015 11:48 AM
  • I've been working on some different things and this is the first time I've had a chance to try this out.

    When I do net use D:\sharedfolder \\tsclient\d\sharedfolder  I get

    System error 67 has occurred.

    The network name cannot be found.

    Monday, September 28, 2015 10:44 PM