VMware Cloud Community
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Set-vmstartpolicy -StartOrder

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

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

This should work:

get-vm <VM-name> | get-vmstartpolicy | Set-vmstartpolicy  -UnspecifiedStartOrder


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

This should work:

get-vm <VM-name> | get-vmstartpolicy | Set-vmstartpolicy  -UnspecifiedStartOrder


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

0 Kudos
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Aha, missed that option in the help, I would have thought a value of $Null was more expected, ahh well.

Thanks

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
0 Kudos