My action script has the following code at the end to disconnect mapped drive on windows servers ( servers are in different domains). The action status shows as “Completed”. However, when I RDP into the server I see the mapped drive letter (indicates disconnected) but I can click on it and am able to view the files. Does the disconnect take a while to refresh on the server? This happens on only some servers and there is no specific pattern.
dos net use M: /delete userpaswd /USER:domain\Userid
Thanks for the response. I want to clarify that I want the mapped drive connection to be completely removed from the system at the end of the action script. Meaning, if the same user or a different user logs into the system the Drive should not show up in “My Computer” as Connected or Disconnected. Currently, the action script shows as “Completed”, when I log into the system and open My Computer - the drive shows as “Disconnected Network Drive”. Any further suggestion would be greatly appreciated.