Pages: [1]
Print
Author Topic: Modify the boot delay on every vm within a cluster  (Read 863 times)
esarakaitis
Administrator
Sr. Member
*****
Posts: 256


8223109 sack57@hotmail.com littleking57 rootinfortwayne
View Profile WWW Email
« on: March 05, 2010, 11:10:09 AM »

Code:
$vm = get-cluster "Cluster"  | Get-VM
$vmView = $vm | foreach-object { get-view $_.id }
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec.bootoptions = New-Object VMware.Vim.virtualmachinebootoptions
$vmConfigSpec.bootoptions.bootdelay = "10000"
$vmView | foreach-object { $_.ReconfigVM($vmConfigSpec) }
Logged
Pages: [1]
Print
Jump to: