Assign a Drive Letter from the Command Line Using DiskPart

Here’s how you can assign a drive letter to a volume using the command line tool DiskPart. For more information, see this TechNet article.

diskpart
list volume
select volume n
assign letter F

Hope this helps!

This entry was posted in Batch Files, Windows, Windows 7, Windows Server 2008 R2, Windows Server 2012. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *