none
Script to disconnect network drive upon RDP disconnect RRS feed

  • Question

  • Is there any once have a clue on how to write a script that would run every time a RDP disconnect?

    I need to create a script to disconnect all network drive upon an RDP disconnect.

    Environment:

    + Windows Professional (XP, 7, 8, 8.1, and 10).

    + Windows Server STD (2008, 2012)

     

    Please help.

    Thank you.


    -- A human.

    Tuesday, January 12, 2016 9:21 PM

All replies

  • Hi,

    Please note there is a Windows 7 forum

    For your scenario, I advise you post your questions to our Script forum.

    https://social.technet.microsoft.com/Forums/windows/en-US/home?category=scripting

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. 

    Hope my clarification is clear.


    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 tnmff@microsoft.com.

    Thursday, January 14, 2016 4:38 AM
    Moderator
  • Thank you for letting me know.

    I have posted this question at that place.

    Is there away to deactivate/delete this post?


    -- A human.

    Thursday, January 14, 2016 5:33 PM
  • Hi hoanggeneral,

    You are welcome, you don’t need to delete your post.

    Please just marking a reply you feel helpful, this behavior means that post has been complete.

    Best regards,

    Teemo Tang


    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 tnmff@microsoft.com.

    Friday, January 15, 2016 1:06 AM
    Moderator