Jump to content
Updated Privacy Statement
  • 0

HVMBootParam


Question

Hi Everyone

I would like to change the boot order and the CPU usage alart on 400+ machines.

I'm here, that this should work, but it does not work. What is the command what is actually working?

==================================

$HVMBootParams = @{
    "firmware," = "uefi"
    "order," = "n"
}


set-xenvm -name "%VMNAME%" -HVMBootParams $HVMBootParams

==================================

 

I already tried so many different combinations, but so far nothing is working.

Could anyone tell me how to run this?

 

thank you

Link to comment

3 answers to this question

Recommended Posts

  • 0

The command works using the  -Name too, as long as the variable is passed in correctly:

PS> $vmName="myVM"
PS> get-xenvm -name $vmName | select HVM_boot_params

HVM_boot_params
---------------
{[order, cd], [firmware, uefi]}

PS> $HVMBootParams = @{ "firmware" = "bios";"order" = "n"}
PS> set-xenvm -name $vmName -HVMBootParams $HVMBootParams
PS> get-xenvm -name $vmName | select HVM_boot_params

HVM_boot_params
---------------
{[order, n], [firmware, bios]}

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...