I'm looking to be able to remap a disk drive (typically D:) to another letter via a batch (or vbs?) script. This should either (in my mind):
- Unmap the physical drive
- Try to map the physical drive to the last available letter
- Disable the physical drive so that the letter is released
- Re-Enable the physical drive on the last available letter.
I know that it can all be done via Disk Management, however, this needs to be scripted. It is also important that (where possible) the user should NOT need to restart their PC.
Any help is appreciated!!