This is very useful. Thank you. Best part of it is that you don't need to worry about the generated diskpart script. Only a very picky preference I have is I would keep the usage syntax more inline with subst or mklink commands where the drive letter comes first (with a colon) and target path comes as second parameter. Though, I understand that drive letter is optional here and can be omitted.