Good question LMR.
If anyone came up with such a script, that would be most helpful.
Just remember that simply authenticating to SharePoint is not sufficient for mapped drive to work. In my experience there is only two ways to authenticate for mapped drives.
1. Through “explorer view” in Library on your SharePoint site
2. Through an Office open dialog. Clicking SharePoint sites will trigger authentication (on my Windows 8 PC authentication is also triggered choosing the mapped drives directly from Office open dialog – no need for the SharePoint sites detour)
After doing one (or both) of these things, mapped drives will be authenticated.
It would be great if this could be automated!