Skip to content

Extend disk space on Windows Server Core

At some point you might need to extend the disk space on a Windows Server Core and this can be done using Powershell.

The Powershell command Get-Volume will display information about the disk (Drive Letter, Size, Size Remaining etc).

You will have to add space from your hypervisor and then use diskpart to rescan the volume to make the virtual machine aware of the space added.

Next you will need to create a Powershell variable and bind the maximum volume size to it.

After you create the variable you need to run the Resize-Partition command in order to increase the disk space.

Now if you will run Get-Volume  you’ll see that disk space was increased.

 

Published inGeneral

2 Comments

  1. Patrick Patrick

    Toms diskpart commands will work but you have to choose the volume which you want to extend!

    diskpart
    list disk
    rescan
    select disk #
    sel vol #
    extend
    exit

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.