diskpart shrink partition powershell

You don´t need diskpart to configure your partitions on your system. i had a task to reduce/shrink the active partition by 2 gb.

Powershell snippet

 

Resize-Partition -DriveLetter C -Size ((Get-Partition -DriveLetter c).Size - 2GB)

 

 

 

 

Leave a comment