Posted in
Windows Powershell,
Windows Server |
No Comment | 7,757 views | 05/03/2012 00:44
In this post, I’ll talk about disk operations on Windows Server 8 Beta. I have Windows 7 and Windows Server 8 Beta on a PC and I want to install Windows 8 Beta as well. I will resize my current Windows Server 8 partition and create a new partition for Windows 8 Beta. When I want to do this operation via Server Manager GUI (in case of you have Server 8 with GUI), I don’t see any option for “Shrink”. Maybe I’m looking to wrong section but here it is:
![Capture01](http://www.yusufozturk.info/wp-content/uploads/2012/03/Capture01.png)
So lets do this operation via Powershell.
1. First of all lets get partition information.
![Capture02](http://www.yusufozturk.info/wp-content/uploads/2012/03/Capture02-288x300.png)
2. My drive letter is W. So I can get detailed information.
Get-Partition -DiskNumber 1 -PartitionNumber 2 |
Get-Partition -DiskNumber 1 -PartitionNumber 2
![Capture03](http://www.yusufozturk.info/wp-content/uploads/2012/03/Capture03-288x300.png)
3. Drive size is 373 Gb. I’ll resize it to 250 Gb.
Get-Partition -DiskNumber 1 -PartitionNumber 2 | Resize-Partition -Size 250GB |
Get-Partition -DiskNumber 1 -PartitionNumber 2 | Resize-Partition -Size 250GB
![Capture04](http://www.yusufozturk.info/wp-content/uploads/2012/03/Capture04-289x300.png)
![](http://www.yusufozturk.info/wp-content/themes/metro/images/readmore.png)