Format and Assign Drive in CMD Prompt

DISKPART> list disk

### Status Size Free Dyn Gpt
-------- ------------- --------- ------- ----- -----
Disk 0 Online 931 GB 0 B *
Disk 1 Online 465 GB 0 B *
Disk 2 No Media 0 B 0 B

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> select partition 1

Partition 1 is now the selected partition.

DISKPART> active

DiskPart marked the current partition as active.

DISKPART> format FS=NTFS label=LocalDisk quick

1...100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign letter=d

DiskPart successfully assigned the drive letter or mount point.

DISKPART>exit