Prerequisites
Links
https://github.com/MicrosoftDocs/windows-powershell-docs/blob/8a35f5e26886d3b04687eca3ecea23d91943d6a9/docset/winserver2022-ps/hyper-v/Set-VMFirmware.md
Summary
Could you please add an example showing how to use Set-VMFirmware to add a VMBootSource firmware path?
Details
For example, I have a bootable Gen2 (UEFI) VM where I installed Debian that has the firmware path pointing to the debian shimx64.efi:
PS C:\Windows\system32> (Get-VMFirmware -VMName gen2-debian-test).BootOrder | Where-Object { $_.BootType -eq 'File' } | Select-Object -ExpandProperty FirmwarePath
HD(1,GPT,FFB61BB9-ADBE-49BC-BCE8-22AF4F699210,0x800,0x100000)/\EFI\debian\shimx64.efi
PS C:\Windows\system32>
I want to add a similar setting to another new Gen2 VM, but I am having trouble figuring out how to do that.
I know the disk identifier, but I just can't figure out how to set the firmware path using Set-VMFirmware.
Suggested Fix
Add an example showing how to set firmware path to EFI shim, please.
Prerequisites
Get-Foocmdlet" instead of "Typo."Links
https://github.com/MicrosoftDocs/windows-powershell-docs/blob/8a35f5e26886d3b04687eca3ecea23d91943d6a9/docset/winserver2022-ps/hyper-v/Set-VMFirmware.md
Summary
Could you please add an example showing how to use
Set-VMFirmwareto add a VMBootSource firmware path?Details
For example, I have a bootable Gen2 (UEFI) VM where I installed Debian that has the firmware path pointing to the debian
shimx64.efi:I want to add a similar setting to another new Gen2 VM, but I am having trouble figuring out how to do that.
I know the disk identifier, but I just can't figure out how to set the firmware path using
Set-VMFirmware.Suggested Fix
Add an example showing how to set firmware path to EFI shim, please.