Adam Mersva1709164055 Posted April 15 Share Posted April 15 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
0 Konstantina Chremmou Posted April 15 Share Posted April 15 The command looks correct, but the syntax does not look PS compliant. The hash table should be declared as follows: $HVMBootParams = @{ "firmware" = "uefi";"order" = "n"} i.e. with semicolon separating the pairs and no commas within the keys. Also, use $VMNAME for the name variable. Link to comment
0 Adam Mersva1709164055 Posted April 16 Author Share Posted April 16 Thank you the answer. In the meantime I foung out that the problem is not with the command, but I need to use the UUID and that will do the job Link to comment
0 Konstantina Chremmou Posted April 26 Share Posted April 26 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
Question
Adam Mersva1709164055
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now