Is there a way to modify the path of a mapped drive using a login script? For Example, when a user logs into their PC I want the login script to search for the existent of a local drive mapping that contains the name of a specific server, if that server name exist then change it to a new server name. Then map the drive using the same drive letter, but with the new server name.
I'm using .scr and .kix scripts for this.
1. User logs into computer
2. Login script checks for existent of Server1 in drive mapping BEFORE drives are
If Server1 is detected in drive mapping then continue with script (go to step 3).
If Server1 not detected in drive mapping then Exit script (go to step 6).
3. Login script detects Drive F=\\Server1\ShareA
4. Login script changes Drive F path to new server, Drive F=\\NewServer\ShareA
5. Login script now maps computer’s Drive F=\\NewServer\ShareA