Hi,
Im trying to set the startorder on some of my vms back to no order so that they do not start in a particular order but I cant work out what value to send it:
I have tried:
get-vmhost MYHOST | get-vmstartpolicy | Set-vmstartpolicy -StartOrder $NULL
get-vmhost MYHOST | get-vmstartpolicy | Set-vmstartpolicy -StartOrder 0
get-vmhost MYHOST | get-vmstartpolicy | Set-vmstartpolicy -StartOrder -1
When you view the vmstartpolicy the entry is black so I thought $NULL would do it.
Any Ideas ?
Thanks
Alan
This should work:
get-vm <VM-name> | get-vmstartpolicy | Set-vmstartpolicy -UnspecifiedStartOrder
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
This should work:
get-vm <VM-name> | get-vmstartpolicy | Set-vmstartpolicy -UnspecifiedStartOrder
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Aha, missed that option in the help, I would have thought a value of $Null was more expected, ahh well.
Thanks