Author Posts

February 12, 2014 at 6:23 am

I have a Windows 2008 Server virtual machine which has had its virtual hard disk expanded. Now I need to expand the partition inside the operating system. What is the simplest way to expand a windows partition in Windows 2008 Server with powershell?

February 12, 2014 at 6:29 am

Only reliable way I've found is to use diskpart

February 12, 2014 at 6:42 am

Is it possible to script the use of diskpart – for example to call diskpart from a powershell script, and tell diskpart to expand disk 0 partition 1 by the maximum amount possible?

February 12, 2014 at 6:55 am

You can call diskpart from with PowerShell

the syntax is explained here
http://support.microsoft.com/kb/300415