PowerCLI: Force a VM to enter BIOS setup on next boot

From VI-Toolkit
Jump to navigation Jump to search

Set-VMBIOSSetup

author: Shay Levy

Description

A filter to programmatically set the vmx-configuration property so that the VM will boot into the BIOS setup screen on the next reboot.

Usage:

## Get all VMs which name starts with XP, force the VM to enter into bios
## mode on next boot and write VM objects back to pipeline
Get-VM XP* | Set-VMBIOSSetup -PassThru

# Get all VMs which name starts with XP and disable (uncheck) bios mode on next boot
Get-VM XP* | Set-VMBIOSSetup -Disable

Location

http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/08/27/force-a-vm-to-enter-bios-setup-screen-on-next-reboot.aspx