Set-CMUserCollection
Set-CMUserCollection
Sets the properties of one or more user collections in the Configuration Manager hierarchy.
構文
Parameter Set: SetByIdMandatory
Set-CMUserCollection -CollectionId <String> [-Comment <String> ] [-LimitingCollectionId <String> ] [-LimitingCollectionName <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SetByNameMandatory
Set-CMUserCollection -Name <String> [-Comment <String> ] [-LimitingCollectionId <String> ] [-LimitingCollectionName <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SetByValueMandatory
Set-CMUserCollection -InputObject <IResultObject> [-Comment <String> ] [-LimitingCollectionId <String> ] [-LimitingCollectionName <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-CMUserCollection cmdlet updates the name, description, or limiting collection of user collections.
Collections represent logical groupings of resources, such as users and devices. For more information about Microsoft System Center 2012 Configuration Manager collections, see Introduction to Collections in Configuration Manager (https://go.microsoft.com/fwlink/p/?LinkID=259433) on TechNet.
パラメーター
-CollectionId<String>
Specifies the IDs of the user collections that you want to update.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Comment<String>
Specifies a description of the specified user collections.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<IResultObject>
Specifies an object that represents the user collections that you want to update.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-LimitingCollectionId<String>
Specifies the ID of the limiting collection for the specified user collections.
エイリアス |
LimitToCollectionId |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-LimitingCollectionName<String>
Specifies the name of the limiting collection for the specified user collections.
エイリアス |
LimitToCollectionName |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the names of the user collections that you want to update.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-NewName<String>
Specifies a name for the specified user collections.
エイリアス |
なし |
必須? |
false |
位置は? |
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: Modify a user collection
This command changes the name of the user collection named UC08 to UserCollection08. The command adds a comment for the collection and specifies a limiting collection.
PS C:\> Set-CMUserCollection -Name "UC08" -Comment "User collection 08." -LimitingCollectionName "All Users" -NewName "UserCollection08"