VMware Cloud Community
guyenvmware000
Enthusiast
Enthusiast

powercli equ. of "the next time the vm boots,force entry into the EFI setup screen"

This checkbox can be selected from vsphere client GUI, is there powercli equivalent available?

"the next time the vm boots,force entry into the EFI setup screen"

Tags (2)
2 Replies
LucD
Leadership
Leadership

Try like this

$vmName = 'MyVM'

$vm = Get-VM -Name $vmName

$spec = New-Object VMware.Vim.VirtualMachineConfigSpec

$spec.BootOptions = New-Object VMware.Vim.VirtualMachineBootOptions

$spec.BootOptions.enterBIOSSetup = $true

$vm.ExtensionData.ReconfigVM($spec)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

juliet94538a
Contributor
Contributor

thanks, that is incredibly helpful.

Reply
0 Kudos