|
We have a variety of mapped drives using the following protocol. $dc=setDrive("H:","\\servername\Users\%USERNAME%","User Folder",0) $dc=SetDrive("L:","\\servername\Share$","Share",1)
The 0 on the end maps the drive, the 1 disconnects and remaps the drive with new information. How can I remove a mapped drive completely?
I've tried the use * /delete function but that only disconnects the drive and doesn't remove it. I also noticed that at least in my instance it doesn't allow for remapping a drive with different information using the use L: "\\servername\Share$". It will keep the old mapping that was defined and not change it to the new information assigned.
Some times we no longer want to have a map drive or assigned to something new, we just want to remove it and I haven't found a way to do this. I also didn't find anything on the protocol that we are using which for the most part works pretty well. Any help would be appreciated. Thank you!
|