Repair-SCOMAgent
Operations Manager 에이전트를 복구합니다.
Syntax
Repair-SCOMAgent
[-Actionaccount <PSCredential>]
-Agent <AgentManagedComputer[]>
[-NoAPM]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Repair-SCOMAgent cmdlet은 하나 이상의 System Center 2019 - Operations Manager 이상 제품 버전 에이전트 설치를 복구합니다.
참고: [-NoAPM] 매개 변수는 System Center Operations Manager 1807에서 도입되었습니다(이 매개 변수는 System Center 2019 Operations Manager에서 유효하지 않음).
예제
예제 1: Operations Manager 에이전트 복구
PS C:\>Get-SCOMAgent -DNSHostName "server01.contoso.com" | Repair-SCOMAgent
이 명령은 에이전트 설치를 복구합니다. 이 명령은 Get-SCOMAgent cmdlet을 사용하여 server01.contoso.com 라는 Operations Manager 에이전트를 가져와서 파이프 연산자를 사용하여 Repair-SCOMAgent cmdlet에 결과를 전달합니다. 두 번째 명령은 server01.contoso.com 에이전트를 복구합니다.
매개 변수
-Actionaccount
PSCredential 개체를 지정합니다. 이 매개 변수는 Operations Manager가 배포 작업을 실행하는 데 사용하는 자격 증명을 지정합니다. 이 매개 변수를 지정하지 않거나 null 값을 지정하는 경우 Operations Manager는 에이전트에 대한 관리 서버의 기본 작업 계정을 사용합니다.
PSCredential 개체를 가져오려면 Get-Credential cmdlet을 사용합니다.
자세한 내용을 보려면 Get-Help Get-Credential
를 입력하십시오.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Agent
AgentManagedComputer 개체의 배열을 지정합니다. 이 매개 변수는 복구할 Operations Manager 에이전트를 지정합니다. AgentManagedComputer 개체를 가져오려면 Get-SCOMADAgent cmdlet을 사용합니다.
Type: | AgentManagedComputer[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
cmdlet을 실행하기 전에 확인을 요청합니다.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NoAPM
System Center Operations Manager 1807에서 도입된 선택적 매개 변수입니다(이 매개 변수는 System Center 2019 Operations Manager에서는 유효하지 않음). 이 매개 변수를 사용하면 에이전트에서 APM 구성 요소의 설치를 사용하거나 사용하지 않도록 설정할 수 있습니다. 이 매개 변수를 사용하여 에이전트에서 APM 구성 요소를 사용하지 않도록 설정합니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
cmdlet이 명령이 파이프라인에서 사용할 수 있는 개체를 만들거나 수정했음을 나타냅니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
cmdlet을 실행할 경우 발생하는 일을 표시합니다. cmdlet은 실행되지 않습니다.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |