VMware Cloud Community
Mallik7
Enthusiast
Enthusiast

Is there a way to disable the ESXi host lockdown mode in vCenter as well as in the DCUI for entire vCenter hosts with a PowerCLI script ?

Is there a way to disable the ESXi host lockdown mode in vCenter as well as in the DCUI for entire vCenter hosts with a PowerCLI script ? - if any solution, would be grateful.

0 Kudos
3 Replies
LucD
Leadership
Leadership

Try like this

Get-VMHost | %{

   $_.ExtensionData.ExitLockdownMode()

}


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

0 Kudos
Mallik7
Enthusiast
Enthusiast

does it help to disable the lock down mode at the DCUI level as well ??

0 Kudos
LucD
Leadership
Leadership

Do you mean the DCUI service?

Get-VMHost -Name MyEsx |

Get-VMHostService | where{$_.Key -eq 'DCUI'} |

Start-VMHostService -confirm:$false

Btw, do you want to enable to disable?The title and the text in the thread are confusing.


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

0 Kudos