Disconnect Mapped Drive on a Windows server

(imported topic written by Lalitha91)

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

(imported comment written by SystemAdmin)

Are the connections persistent?

From http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true

italics

To restore the current connections at each logon, regardless of future changes, type:

italics

net use /persistent:yes

(imported comment written by SystemAdmin)

Sorry for the “italics” as I hadn’t done that before

(imported comment written by Lalitha91)

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.

Thanks

(imported comment written by SystemAdmin)

The TEM Agent runs as System, and under normal operation should not be able to effect your mapped drives. They are part of your Windows User Profile.