VMware Support Community
GodfatherHTLF
Contributor
Contributor

powercli script to enable lockdown and disable ssh

i'm looking for a powercli script to run that will enable lockdown and disable ssh for my entire vsphere environment.

0 Kudos
1 Reply
Shen88
Hot Shot
Hot Shot

@GodfatherHTLF,

The below KB and article should help you achieve your requirement.

Enabling or disabling Lockdown mode on an ESXi host (1008077) (vmware.com)
PowerCLI: Enable/Disable SSH and Lockdown Mode – Angry Admin (angrysysops.com) 

If you think your queries have been answered, Mark this response as "Correct" or "Helpful" and consider giving kudos to appreciate!

Regards,
Shen
0 Kudos