Link to home
Start Free TrialLog in
Avatar of Jay Thomas
Jay ThomasFlag for United Kingdom of Great Britain and Northern Ireland

asked on

extend volume using powershell

Hi all.

Have a 2012 R2 server core with 10GB C drive. Using Hyper-V I added an additional 5GB. Problem I have, how do I extend the drive? I can't access 'Disk Management' using remote MMC. I had previous question in EE and thought we'd fixed it, but no. I can do anything else remotely except access that MMC console, so I can't simply extend the volume. This isn't a question about not getting to MMC, I've had it with that and given up, I put that down to crappy core.
I need a command that lets me see the available space. I try Get-Volume but it only shows the 10GB. And I need the command that will expand the disk to use up the other 5GB.

Thanks for looking
Avatar of noxcho
noxcho
Flag of Germany image

How many columes do you have on the drive? If only C then start cmd on that machine - run diskpart.exe and use it to extend C drive.
ASKER CERTIFIED SOLUTION
Avatar of Jiří Beneš
Jiří Beneš

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jay Thomas

ASKER

Thanks both for the prompt response. I tried the PS option and it worked perfect for me. Thank you.