Note that the EngineId is only used by SNMP v3. Are you using SNMP v3 ?
If you pass $null for the engineId, is it changed ?
If it does, you could first query the value like this
$engineId=$esxcli.system.snmp.get() |Select-ExpandPropertyengineid
Note that the EngineId is only used by SNMP v3. Are you using SNMP v3 ?
If you pass $null for the engineId, is it changed ?
If it does, you could first query the value like this
$engineId=$esxcli.system.snmp.get() |Select-ExpandPropertyengineid