Hello there,
You could use a script that would remove all of the connections for a resource, and then prompt you for credentials to remap it, if you wanted to.
The drawback with the other approach of mapping it via the command line (when run as a different user) means you can't use Windows Explorer to navigate it.
The biggest problem you will have here is that you can't have muliple connections to one resource by multiple user accounts.
So say you can access \server\share1\myfolder as domain\user1, you cannot map a drive or add other credentials to that resource to access \server\share1\myfolder\secure as domain\user2
-----------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--