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

Export-CMDeviceCollection

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Export-CMDeviceCollection

Exports a device collection.

Syntax

Parameter Set: SearchByNameMandatory
Export-CMDeviceCollection -ExportFilePath <String> -Name <String> [-ExportComment <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Export-CMDeviceCollection -CollectionId <String> -ExportFilePath <String> [-ExportComment <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Export-CMDeviceCollection -ExportFilePath <String> -InputObject <IResultObject> [-ExportComment <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Export-CMDeviceCollection cmdlet exports a device collection. This cmdlet exports a device collection from the site database to a Managed Object Format (MOF) file that you can archive or use at another Microsoft System Center 2012 Configuration Manager site.

Parameters

-CollectionId<String>

Specifies the ID of a device collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ExportComment<String>

Specifies a comment for the exported device collection.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ExportFilePath<String>

Specifies the full path for the export file.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

Specifies a device collection object. To obtain a CMDeviceCollection object, use the Get-CMDeviceCollection cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a device collection.


Aliases

none

Required?

true

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: Export a device collection

This command exports the device collection named Windows 7 to the MOF file named Win7Devices.


PS C:\> Export-CMDeviceCollection -ExportFilePath "\\Contoso01\Export\Win7Devices" -Name "Windows 7"

Related topics

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