This is my question :
1- when I run " Get-VMHostService | where {$_.Key -eq 'snmpd'} | Set-VMHostService -Policy Off" this will apply on all hosts how can define to apply on specific host ?
2- When I want to run below script on specific host is this correct ?
Get-VMHost $esx | Get-VMHostService | where {$_.Key -eq 'snmpd'} | Stop-VMHostService -Confirm:$false
3- Is this script correct if I want to run it on specific host ? "Get-VMHost $esx | Get-VMHostService | where {$_.Key -eq 'snmpd'} | Stop-VMHostService -Confirm:$false"
4- Is this script correct if I want to run it on all hosts ?
Get-VMHost $esx | Get-VMHostService | where {$_.Key -eq 'snmpd'} | Stop-VMHostService -Confirm:$false