Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Set-CMDeviceCollection

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Set-CMDeviceCollection

Sets the properties of one or more device collections in the Configuration Manager hierarchy.

Syntax

Parameter Set: SetByIdMandatory
Set-CMDeviceCollection -CollectionId <String> [-Comment <String> ] [-LimitingCollectionId <String> ] [-LimitingCollectionName <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByNameMandatory
Set-CMDeviceCollection -Name <String> [-Comment <String> ] [-LimitingCollectionId <String> ] [-LimitingCollectionName <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByValueMandatory
Set-CMDeviceCollection -InputObject <IResultObject> [-Comment <String> ] [-LimitingCollectionId <String> ] [-LimitingCollectionName <String> ] [-NewName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Set-CMDeviceCollection cmdlet updates the name, description, or limiting collection of device 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 (http://go.microsoft.com/fwlink/p/?LinkID=259433) on TechNet.

Parameters

-CollectionId<String>

Specifies the IDs of the device collections that you want to update.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Comment<String>

Specifies a description of the specified device collections.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

Specifies an object that represents the device collections that you want to update.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-LimitingCollectionId<String>

Specifies the ID of the limiting collection for the specified device collections.


Aliases

LimitToCollectionId

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-LimitingCollectionName<String>

Specifies the name of the limiting collection for the specified device collections.


Aliases

LimitToCollectionName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the names of the device collections that you want to update.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-NewName<String>

Specifies a name for the specified device collections.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Update a device collection

This command updates the device collection that has the ID 9990000D.


PS C:\> Set-CMDeviceCollection -CollectionId "9990000D"

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.