Home Windows 2012: PowerShell
Post
Cancel

Windows 2012: PowerShell

This is how you change DVD drive letter in PowerShell.

(gwmi Win32_cdromdrive).drive | %{$a = mountvol $_ /l;mountvol $_ /d;$a = $a.Trim();mountvol z: $a}

 

This post is licensed under CC BY 4.0 by the author.