Disable-SCOMAgentProxy

Disable-SCOMAgentProxy

Disables agents from acting as a proxy agent for other computers.

Syntax

Parameter Set: FromAgent
Disable-SCOMAgentProxy [-Agent] <AgentManagedComputer[]> [[-PassThru]] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Disable-SCOMAgentProxy cmdlet disables System Center 2012 – Operations Manager agents from acting as a proxy agents and discovering managed objects on other computers.

Parameters

-Agent<AgentManagedComputer[]>

Specifies an array of AgentManagedComputer objects. This parameter specifies the Operations Manager agents to disable from acting as proxy agents. To obtain an AgentManagedComputer object, use the Get-SCOMAgent cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-PassThru

Indicates that the cmdlet creates or modifies an object that a command can use in the pipeline. By default, this cmdlet does not generate any output.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Disable a proxy agent

This command gets the Operations Manager agent named server01.contoso.com and disables it from acting as a proxy agent.

PS C:\> "Server01.Contoso.com" | Get-SCOMAgent | Disable-SCOMAgentProxy

Example 2: Disable agents that act as a proxy agent

This command gets all Operations Manager agents that have the ProxyingEnabled property set to $True, and then disables the agents from acting as a proxy agent.

PS C:\> Get-SCOMAgent | Where-Object {$_.ProxyingEnabled.Value -eq $True} | Disable-SCOMAgentProxy

Enable-SCOMAgentProxy

Get-SCOMAgent

Get-SCOMAgentlessManagedComputer

Get-SCOMAgent