Greetings,
I searched online and found lots of examples to extend the windows partition with PowerShell, but not using a label name which I was informed that I could.
Diskpart is what I'm using now but I have to hard code the partition which kill the automation.
My issue, I have a hard drive which is pre-formatted and the OS is installed. I need to extend the partition to use the unallocated space (yes the drivers are closed using a disk duplicator). My issue is that while this runs in WinPE the drive letter could be "D" or "E" etc.
What never changes is the label where the OS in installed in called "OSDisk"
I was thinking of using Resize-Partition whoever, I find example that are almost the same as DiskPart.
Is Resize-Partition the best way? if so, what I get assistance/director on how I can resize the partition using the Label?
Thank you
Walter