Formating USB using Powershell

Learning Path

Get-Disk

Get-Disk 1 | Clear-Disk -RemoveData

New-Partition -DiskNumber 1 -UseMaximumSize

“NTFS,” “FAT32,” or “exFAT,”

Get-Partition -DiskNumber DISK-NUMBER | Format-Volume -FileSystem FILE-SYSTEM -NewFileSystemLabel DRIVE-NAME

Get-Partition -DiskNumber 1 | Format-Volume -FileSystem NTFS -NewFileSystemLabel workFlash

Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter E