Attached Zip file contains, three PowerShell/PowerCLI scripts, following are the script details :
Disable_slpad_and_sfcbd_on_Hosts_in_VC.ps1- This will help to Disable & Query slpd & sfcb Service on ESXi hosts and will highlight any ESXi hosts that require manual intervention to disable the slpd service, it will use Set-VMHostService Cmdlet in PowerCLI and enabling SSH on the Host is not required for performing the task.
Older versions of ESXi 6.5 /6.7 and 7.0 do not have an option to disable slpd service using PowerCLI CmdLet Set-VMHostService. In that situation, scripting the task to query or disable is only possible with SSH connection to the host using "plink.exe" utility, the other two scripts in the attachment can be used to automate the task using Plink.
Query_slpd_and_sfcbd_status_on_ESXi_in_VC_with_plink.ps1- This will help to Query the Current Status of slpd & sfcb Services, it will enable SSH on the Host automatically and Disables it after querying the service status.
Disable_slpd_and_sfcbd_on_ESXi_in_VC_with_plink.ps1 - This script will help to Disable slpd & sfcb Services on all the hosts in vCenter Server, it will also enable SSH on the Host automatically and Disable it after performing the task.