Running Windows Core: How-to find volume size & free space


Running Windows Core Series, what happens when you have no GUI?

When running these commands or using them in scripts keep in mind that some may become deprecated in future versions of Windows. Best practice is to use the PowerShell commands when possible to future proof any script that use these commands. These commands were run on Windows Server 2012R2.

When running Windows Server 2012+ without a GUI note that the GUI can be reinstalled via PowerShell (Install-WindowsFeature) and a reboot.

From Windows Server core command prompt:

C:\>DISKPART

LIST VOL

clip_image001

SELECT VOL 2

DETAIL VOL

clip_image002

Or

C:\>WMIC VOLUME LIST STATUS

clip_image003

Or

C:\>POWERSHELL

PS C:\>Get-Volume

clip_image004

If you know any other interesting ways of getting this information from a Windows Server core installation post below.

Thanks for stopping by and see other Windows Server core tips; http://blogs.technet.com/b/chad/archive/tags/server+core/default.aspx

Comments (2)

  1. Great article. Thank you.

  2. Anonymous says:

    Recent Releases and Announcements   ·          SQL 2012