Add-CMDeviceAffinityToUser
Add-CMDeviceAffinityToUser
Adds device affinity to a Configuration Manager user.
構文
Parameter Set: AddDeviceAffinityByUserName
Add-CMDeviceAffinityToUser -UserName <String[]> [-DeviceId <String> ] [-DeviceName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: AddDeviceAffinityByUserId
Add-CMDeviceAffinityToUser -UserId <String> [-DeviceId <String> ] [-DeviceName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Add-CMDeviceAffinityToUser cmdlet adds device affinity to 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 user’s devices, 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 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 to associate with the device.
エイリアス |
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: Add device affinity to a user by specifying a user ID
This command adds affinity to the device named WestDivUpdates05 for the user named Patti Fuller.
PS C:\> Add-CMDeviceAffinityToUser -UserName "Patti Fuller" -DeviceName "WestDivUpdates05"
関連トピック
Approve-CMUserDeviceAffinityRequest
Deny-CMUserDeviceAffinityRequest