i'm looking for a powercli script to run that will enable lockdown and disable ssh for my entire vsphere environment.
@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)