Salta al contenuto principale

BAT file or quick way to restore drive letters?

Thread needs solution

Win 10  Dual booting changes drive letters, especially if we have to swap boot drive Sata cables. Has anyone come up with a quick way to restore those drive letters, liek a BAT file? I can do it using diskpart, but I havne't been able to automate it in a BAT file, due to some changes in Win 10.

0 Users found this helpful

Gerry, I would recommend caution when changing drive letters, especially those associated with the OS itself as these are held within the system registry files.

I have a dual-boot Windows 10 / Windows Vista setup on my Dell laptop where I see that the booted version of Windows always claims drive C: and pushes the other version to use drive D: but this has not caused any issues for me.  I am not doing any cable changes as both OS's are on the same 1TB SSHD drive in different partitions.

If you are seeing other drive letters being changed, then I would recommend setting these from within the booted version of Windows to drive letters that can be common to both OS's and doing the same on both.

With regard to your original question, then I would guess that you could probably use Windows Powershell to do what you want but I am no expert with using that tool but there are lots of sites that offer examples of using powershell.