ExFAT format disk using diskpart

From munkjensen.net/wiki

This is an EXAMPLE of how to ExFAT format disk using diskpart in a command prompt as Administrator:

C:\>diskpart

Microsoft DiskPart version 10.0.16299.15

Copyright (C) Microsoft Corporation.
On computer: Computer1

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          233 GB      0 B        *
  Disk 1    Online          931 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> list disk

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

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> active

DiskPart marked the current partition as active.

DISKPART> filesystems

Current File System

  Type                 : RAW
  Allocation Unit Size : 512
  Flags : 00000000

File Systems Supported for Formatting

  Type                 : NTFS (Default)
  Allocation Unit Sizes: 512, 1024, 2048, 4096 (Default), 8192, 16K, 32K, 64K, 128K, 256K, 512K, 1024K, 2048K

  Type                 : exFAT
  Allocation Unit Sizes: 64K, 128K, 256K (Default), 512K, 1024K, 2048K, 4096K, 8192K, 16384K, 32768K

DISKPART> format fs=exfat label="DRIVE LABEL HERE" unit=32K quick

  100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign letter=d

DiskPart successfully assigned the drive letter or mount point.

DISKPART>