Remove-CMDevice

Remove-CMDevice

Removes Configuration Manager client devices.

構文

Parameter Set: SearchByIdMandatory
Remove-CMDevice -DeviceId <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Remove-CMDevice -DeviceName <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Remove-CMDevice -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-CMDevice cmdlet removes one or more Microsoft System Center 2012 Configuration Manager client devices. Do not remove a client if you want to uninstall the client or remove it from a collection.

Removing a device client manually deletes the client record from the System Center 2012 Configuration Manager database. Typically, you should not use this action unless it is for troubleshooting scenarios. If you delete the client record and the System Center 2012 Configuration Manager client is still installed and communicating with System Center 2012 Configuration Manager, Heartbeat Discovery recreates the client record the System Center 2012 Configuration Manager database, although the client history and any previous associations are lost.

When you remove a mobile device client that was enrolled by System Center 2012 Configuration Manager, this action also revokes the public key infrastructure (PKI) certificate that was issued to the mobile device and this certificate is then rejected by the management point, even if IIS does not check the certificate revocation list (CRL). Certificates on mobile device legacy clients are not revoked when you delete these clients.

パラメーター

-DeviceId<String[]>

Specifies an array of device IDs.

エイリアス

ResourceId

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-DeviceName<String[]>

Specifies an array of device names.

エイリアス

Name

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Force

Performs the action without a confirmation message.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-InputObject<IResultObject>

Specifies a CMDevice object. To obtain a CMDevice object, use the Get-CMDevice cmdlet.

エイリアス

なし

必須?

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: Remove a device by using an ID

This command removes the device that has the ID 2097152000.

PS C:\> Remove-CMDevice -DeviceId "2097152000"

Example 2: Remove a device by using a name

This command removes the device named Cmcen-dist02.

PS C:\> Remove-CMDevice -DeviceName "Cmcen-dist02"

関連トピック

Get-CMDevice

Approve-CMDevice

Block-CMDevice

Unblock-CMDevice