How to expand a virtual hard disk in Windows Server Core

Last updated on September 25th, 2021 at 08:50 pm


If you are using Windows Server Core in your environment then you will know that adding disk space to a virtual hard drive is not as simple as using the Disk Management GUI.

But, using the steps below, you can carry out the disk extension in no time.

First of all, add the amount of disk space that you want in your Hypervisor, be it Hyper-V, Oracle or VMWare. Then logon to your Windows Server Core which should bring up the standard command prompt. In this command prompt, type in the following command steps:

  • diskpart (this will take you into the Disk Part program)
  • list disk (this will list all the disks on your server – make note of the disk you want to expand)
  • rescan (this will then show the extra disk space you added available on the disk)
  • select disk # (# being the disk number you want to extend)
  • extend (this will expand the disk to the full available capacity)
  • exit

This will take you back to the command prompt and you can then logoff the server.

You will now find that the virtual hard disk is now available with the extra disk space.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Free Subscription

If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.

Join 450 other subscribers.

No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.

Leave us a message...

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