Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Set-SCOMAgentApprovalSetting

Updated: January 26, 2014

Applies To: System Center 2012 R2 Operations Manager

Set-SCOMAgentApprovalSetting

Changes the manual agent approval setting for the management group.

Syntax

Parameter Set: AutoReject
Set-SCOMAgentApprovalSetting -AutoReject [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-PassThru] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: AutoApprove
Set-SCOMAgentApprovalSetting -AutoApprove [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-PassThru] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: Pending
Set-SCOMAgentApprovalSetting -Pending [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-PassThru] [-SCSession <Connection[]> ] [ <CommonParameters>]




Detailed Description

The Set-SCOMAgentApprovalSetting cmdlet changes the manual agent approval setting for the management group.

Specify the AutoApprove parameter to automatically approve any new manually installed agents.
Specify the AutoReject parameter to automatically reject any new manually installed agents.
Specify the Pending parameter to review the request from any new manually installed agents.

Parameters

-AutoApprove

Indicates that Operations Manager automatically approves any manually installed agent that contacts the management server and joins the agent to the management group.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-AutoReject

Indicates that Operations Manager automatically rejects any manually installed agent that contacts the management server and does not join the agent to the management group.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String[]>

Specifies an array of names of computers. You can use NetBIOS names, IP addresses, or fully qualified domain names (FQDNs). To specify the local computer, type the computer name, localhost, or a dot (.).

The System Center Data Access service must be running on the computer. If you do not specify a computer, the cmdlet uses the computer for the current management group connection.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Credential<PSCredential>

Specifies a PSCredential object for the management group connection. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.

If you specify a computer in the ComputerName parameter, use an account that has access to that computer. The default is the current user.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

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?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Pending

Indicates that Operations Manager directs all requests from manually installed agents that contact the management server to the Pending Management list. An administrator must review the request and manually approve the agent requests.

Use the Get-SCOMPendingManagement, Approve-SCOMPendingManagement, and Deny-SCOMPendingManagement cmdlets to manage agents in the pending management list.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SCSession<Connection[]>

Specifies an array of Connection objects. To obtain a Connection object, use the Get-SCOMManagementGroupConnection cmdlet.

A connection object represents a connection to a management server. The default is the current management group connection.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

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: Change the agent approval setting to AutoApprove

This command sets the manual agent approval setting for the management group to automatically approve any manually installed agent that contacts the management server and join the agent to the management group.


PS C:\> Set-SCOMAgentApprovalSetting -AutoApprove

Example 2: Change the agent approval setting to AutoReject

This command changes the manual agent approval setting for the management group to automatically reject any manually installed agent that contacts the management server.


PS C:\> Set-SCOMAgentApprovalSetting -AutoReject

Example 3: Change the agent approval setting to Pending

This command changes the manual agent approval setting for the management group to pending. An administrator must review the requests and manually approve the agent requests.


PS C:\> Set-SCOMAgentApprovalSetting -Pending

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.