Still having issues, I get this.
PowerCLI C:\windows\system32> Get-AdvancedSetting -Entity $srv -Name snmp.*
Get-AdvancedSetting : Cannot validate argument on parameter 'Entity'. The argument is null or empty
. Supply an argument that is not null or empty and then try the command again.
At line:1 char:28
+ Get-AdvancedSetting -Entity <<<< $srv -Name snmp.*
+ CategoryInfo : InvalidData: (:) [Get-AdvancedSetting], ParameterBindingValidationEx
ception
+ FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets
.Commands.GetAdvancedSetting