Update Workflows/Windows/Delete Windows Recovery Partition.md

This commit is contained in:
2025-03-17 15:45:21 -06:00
parent bfc3a7b5f3
commit a17dfd5b0f

View File

@ -1,6 +1,8 @@
**Purpose**: **Purpose**:
Sometimes you are running a virtual machine and are running out of space, and want to expand the operating system disk. However, there is a recovery partition to-the-right of the operating system partition. When this happens, you have to delete that partition in order to expand the storage space for the operating system. Sometimes you are running a virtual machine and are running out of space, and want to expand the operating system disk. However, there is a recovery partition to-the-right of the operating system partition. When this happens, you have to delete that partition in order to expand the storage space for the operating system.
These commands can be run in a headless environment using just powershell.
**From within the VM** > Open a powershell window and run the following commands: **From within the VM** > Open a powershell window and run the following commands:
```powershell ```powershell
diskpart # (1) diskpart # (1)
@ -25,7 +27,7 @@ exit # (9)
9. Gracefully close the disk management CLI utility. 9. Gracefully close the disk management CLI utility.
## Free Space Validation ## Free Space Validation
From this point, you might want to triple-check the free space has been accounted for, so you can run the following command to check for free space: From this point, you might want to verify the free space has been accounted for, so you can run the following command to check for free space:
```powershell ```powershell
Get-Volume | Select-Object DriveLetter, FileSystem, @{Name="FreeSpace(GB)"; Expression={"{0:N2}" -f ($_.SizeRemaining / 1GB)}}, @{Name="TotalSize(GB)"; Expression={"{0:N2}" -f ($_.Size / 1GB)}} Get-Volume | Select-Object DriveLetter, FileSystem, @{Name="FreeSpace(GB)"; Expression={"{0:N2}" -f ($_.SizeRemaining / 1GB)}}, @{Name="TotalSize(GB)"; Expression={"{0:N2}" -f ($_.Size / 1GB)}}
``` ```