First I’m new to powershell so my learning has come by google. Have a server with two removable RDX drives. Drive M and N. Need a script to swap the drive letters.
I came a cross a script for changing the letters, and it works OK, but I have the same issue that I ran into with a VBS script. This runs from windows Scheduler at midnight. If something is access the drive when the swap takes place then it will lock the drive letter so that it is no longer available. Only way I know is to free it by a reboot.