SynopsisRemoves an SNMP manager on a local or remote computer.
- Remove-SNMPManager [-Manager] [-ComputerName] [-Credential]
DescriptionThe Remove-SNMPManager cmdlet is used to remove SNMP managers configured on the local or a remote computer.
- Manager Remove this SNMP manager.
- ComputerName The computer against which to run the cmdlet. By default this parameter will be populated with the name of the local computer.
- Credential The credentials under which to run the cmdlet. By default this cmdlet will run as the current user. Using this parameter and the Get-PSCredential cmdlet you can specify an alternate set of credentials under which to execute this command.
InputsRemove-SNMPManager accepts output of the Get-SNMPManager cmdlet as an input object. In addition the Manager and ComputerName parameters each accept pipeline input by property name.
OutputsRemove-SNMPManager makes changes directly to Windows and does not output any Powershell objects.
NotesThe Remove-SNMPManager cmdlet requires that the RPC service is started on the computer it is trying to access and that DNS services are available to resolve target host names.
Example 1In this command the SNMP service of the remote computer Serv01 is configured to remove manager 192.168.0.44:
Remove-SNMPManager -Manager 192.168.0.44 -Computer Serv01
Example 2The Remove-SNMPManager cmdlet can be used in conjunction with the Get-SNMPSecurity cmdlet. In this command all of the SNMP managers on the local computer are removed:
Get-SNMPSecurity | Remove-SNMPManager