Windows Server Core – Create a new disk using diskpart

Windows Server has shipped in a Server Core option since 2008, and it remains available today on Server 2019, 2022 and 2025. Without a GUI, even a simple task like adding a new virtual disk can feel unfamiliar the first time you do it — this is the diskpart sequence to get it done from […]

Windows Server Core Create A New Disk Using Diskpart

Windows Server has shipped in a Server Core option since 2008, and it remains available today on Server 2019, 2022 and 2025. Without a GUI, even a simple task like adding a new virtual disk can feel unfamiliar the first time you do it — this is the diskpart sequence to get it done from the command line.

Once you’ve booted into Server Core you’ll be presented with a Command Prompt window. Type the following commands:

diskpart

Loads the diskpart utility.

list disk

Shows the disks the server can currently see.

rescan

Run this if the new virtual disk isn’t showing yet, then run list disk again to confirm it’s now visible.

sel disk 1

Selects the disk to work on — replace 1 with the number assigned to your new disk from the list disk output.

create part prim

Creates a primary partition on the selected disk.

assign letter=E

Assigns a drive letter — change E to whichever letter you want to use.

sel part 1

Selects the partition you just created.

format fs=ntfs label="DATA" quick

Formats the partition as NTFS — change "DATA" to whatever volume label you want.

exit

Closes diskpart.

Once that’s done, the new drive letter you assigned will show the disk ready to use.

Feedback

If you have any questions or feedback on this guide, please feel free to leave us a message below in the comments section.

Resources

🛠️

Gear We Recommend

Running this in a home lab? Here’s the gear that keeps our test environment reliable.

Browse our Home Lab Essentials picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.