Command Prompt

The Command Prompt allows you to run programs by typing in commands. There is also a more powerful command prompt called the PowerShell.

Partitioning a Drive

You can partition your drive using the diskpart command. Note this command will erase any data currently stored on a drive. Type diskpart at the command prompt to begin.

list disk list all available disks
select disk <x> select disk x (use disk number  from list command)
clean remove all partitions on disk
create partition primary size=<size> create new primary partition (size in bytes)
list partition list all partitions
select partition <x> select partition x (use partition number from list command)

Formatting a Drive

You can format your drive using the format command. Note this command will erase any data currently stored on a drive.

format x: /q /fs:<filesystem> Format drive x using quick format. For x, specify drive letter.
For file system use NTFS, exFAT or FAT32. NTFS for internal windows drives. exFAT for external drives on windows & mac.

System File Checker

Type SFC /SCANNOW to check the integrity of all protected system files.

You can also use

/VERIFYONLY: Only checks integrity of system files
/SCANFILE: Scans and fixes specific file
/VERIFYFILE: Verifies the integrity of a specific file.

Check Disk for Errors

type chkdsk <drive letter>:

For example

chkdsk c: /f

/f Fixes errors on the disk.
/r Locates bad sectors and recovers readable information.
/x Forces the volume to dismount first, if necessary

Map Network Drive

You can use this command to map network drives in Windows.

Net use <drive letter>: “<network share path>” /persistent:yes

For example

Net use P: “\\titan\shared area” /persistent:yes



Return to Windows 10 Resources