This cmdlet is part of the Vexasoft Cmdlet Library. You can download it now or click here to find out more.

Remove-SNMPManager

Synopsis

Removes an SNMP manager on a local or remote computer.

Syntax

  • Remove-SNMPManager [-Manager] [-ComputerName] [-Credential]

Description

The Remove-SNMPManager cmdlet is used to remove SNMP managers configured on the local or a remote computer.

Parameters

  • 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.

Inputs

Remove-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.

Outputs

Remove-SNMPManager makes changes directly to Windows and does not output any Powershell objects.

Notes

The 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 1

In 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 2

The 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