How to Format USB with Windows Command Line

Follow these steps.
  1. Connect your disk.
  2. Run cmd as an Administrator.
  3. diskpart.exe
  4. list disk
  5. select disk n
  6. detail disk
  7. clean
  8. create partition primary
  9. active
  10. format fs=fat32 quick (or exFAT, NTFS etc.)
  11. assign Assigns the disk a drive letter.
  12. exit

Thats it.