Hi everyone, currently we have several batchfiles that take care of mapping net work drives. For sometime these have been working with no problems, however we have come to change the mapping on one of the drives on boot, so have included the command to delete the current mapping before recreating the mapping to the new location. This is not working as i would have expected.
When the user logs in the old mapping is still pointing to the wrong location. I have tried to run the mapping manually on the desktop and this works (even when i run it through the Netlogon share on the DC(s), however it does not on boot and login, I did try removing the profile path in the users profile and add it as a Logon GP in AD but this did not work either. If i delete the local user profile on the desktop , this obviously works, but i don't really want to do that? Any ideas appreciated. (i have not tried to change the .bat login file into a .cmd file, would that be advisable before adding it to a GP in AD?
a sample of the exact script is below (its about as simple as it gets)
net use n: /delete /yes
net use n: \\bws-app01\home\staff
(note. the previous instance is referencing \\curriculum02\home\staff, as N: and want to replace this with the above.