I'm in the process of moving file servers. Once completed, I will have to change the UNC path that the mapped drive letters used network wide to point to the new machine. I want to handle the change through a VBS logon script that I'll attach to OUs to map different drives.
The goal for the script is to first grab the UNC path for the F: (or whatever drive); if it equals "\old_server\files" then disconnect it and then reconnect it as "\new_server\files". Otherwise, do nothing. There's 5 paths/drives total that this will need to happen for.
I tried using Computer Performance's Already Connected Script but couldn't get it to work. It didn't disconnect the old drive when testing it out on multiple machines.
Any help is appreciated.