Block-CMConflictingRecord
Block-CMConflictingRecord
Creates a blocked Configuration Manager record for client that has a conflicting record.
構文
Parameter Set: SearchByNameMandatory
Block-CMConflictingRecord -Name <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Block-CMConflictingRecord -Id <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Block-CMConflictingRecord -ConflictingRecord <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Block-CMConflictingRecord cmdlet blocks a record for a client that has a conflicting record in Microsoft System Center 2012 Configuration Manager.
When System Center 2012 Configuration Manager recognizes a new client, it uses hardware information to check whether it previously created a record for that computer. For example, you might have reinstalled the operating system. The previous client record still exists with the same hardware information. If you manually resolve conflicts, you have the option to merge the new record with the existing record, create a new record, or create a record as a blocked record. You can also configure System Center 2012 Configuration Manager to resolve conflicts automatically.
You can specify a conflict by using a name or ID or you can use the Get-CMConflictingRecord cmdlet to obtain one.
パラメーター
-ConflictingRecord<IResultObject>
Specifies a conflicting record object. To obtain a conflicting record object, use the Get-CMConflictingRecord cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Id<String>
Specifies an ID for the conflicting records.
エイリアス |
Smsid |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies a name for the conflicting records.
エイリアス |
AgentName |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Create a blocked record for a named conflict
This command creates a blocked record for the conflict named CR07.
PS C:\> Block-CMConflictingRecord -Name "CR07"
Example 2: Create a blocked record by using a variable
The first command gets a conflicting record named CR07 and saves it in the $CMCR variable.
The second command creates a blocked record for the conflict in $CRCM.
PS C:\> $CMCR = Get-CMConflictingRecord -Name "CR07"
PS C:\> Block-CMConflictingRecord -ConflictingRecord $CMCR