Repair-SCOMAgent
Updated: September 10, 2012
Applies To: System Center 2012 - Operations Manager, System Center 2012 SP1 - Operations Manager
Repair-SCOMAgent
Syntax
Parameter Set: FromAgent Repair-SCOMAgent -Agent <AgentManagedComputer[]> [-Actionaccount <PSCredential> ] [-PassThru] [ <CommonParameters>]
Detailed Description
The Repair-SCOMAgent cmdlet repairs the specified Operations Manager agent.
Parameters
-Actionaccount<PSCredential>
Specifies the credentials under which the task will run. If this parameter is omitted or has a null value, the default action account of the management server that manages the agent is used.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-Agent<AgentManagedComputer[]>
Specifies one or more agent objects to repair. Enter a variable that represents the agents, or type a command that gets the agents.For information about how to get agents, type Get-Help Get-SCOMAgent.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-PassThru
Returns an object representing the agent. 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 |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Examples
-------------------------- EXAMPLE 1 --------------------------
This example gets the Operations Manager agent named Server01.Contoso.Com and uses the pipeline operator to pass the agent to the Repair-SCOMAgent cmdlet.
PS C:\> Get-SCOMAgent -Name "Server01.Contoso.Com" | Repair-SCOMAgent
