Remove-CMDeviceAffinityFromUser

Remove-CMDeviceAffinityFromUser

Removes device affinity from a Configuration Manager user.

構文

Parameter Set: RemoveDeviceAffinityByUserName
Remove-CMDeviceAffinityFromUser -UserName <String[]> [-DeviceId <String> ] [-DeviceName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceAffinityByUserId
Remove-CMDeviceAffinityFromUser -UserId <String> [-DeviceId <String> ] [-DeviceName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-CMDeviceAffinityFromUser cmdlet removes device affinity from a user of Microsoft System Center 2012 Configuration Manager.

Device affinity in System Center 2012 Configuration Manager associates a user with one or more devices. Instead of deploying applications to all the devices of a user, you deploy the application to the user and System Center 2012 Configuration Manager automatically installs the application on all devices that are associated with that user. Device affinity removes the need for System Center 2012 Configuration Manager to determine the names of all the devices of a user before you deploy applications for that user.

For more information about user device affinity, see How to Manage User Device Affinity in Configuration Manager (https://go.microsoft.com/fwlink/?linkid=247182) on TechNet.

パラメーター

-DeviceId<String>

Specifies a device by using an ID.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DeviceName<String>

Specifies a device by using a name.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-UserId<String>

Specifies a user by using an ID.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-UserName<String[]>

Specifies an array of user names.

エイリアス

UniqueUserName

必須?

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 device affinity from a user by specifying a user ID

This command adds affinity to the device named WestDivUpdates05 for the user named Patti Fuller.

PS C:\> Remove-CMDeviceAffinityFromUser -UserName "Patti Fuller" -DeviceName "WestDivUpdates05"

関連トピック

Add-CMDeviceAffinityToUser

Approve-CMUserDeviceAffinityRequest

Deny-CMUserDeviceAffinityRequest

Get-CMUserDeviceAffinity

Get-CMUserDeviceAffinityRequest

Import-CMUserDeviceAffinity