Export-CMDriverPackage

Exports driver packages.

Syntax

Export-CMDriverPackage
      [-Comment <String>]
      [-Confirm]
      [-DisableWildcardHandling]
      -ExportFilePath <String>
      [-ForceWildcardHandling]
      -Id <String>
      [-WhatIf]
      [-WithContent <Boolean>]
      [-WithDependence <Boolean>]
      [<CommonParameters>]
Export-CMDriverPackage [-Comment ] [-Confirm] [-DisableWildcardHandling] -ExportFilePath 
 [-ForceWildcardHandling] -InputObject  [-WhatIf] [-WithContent ]
 [-WithDependence ] []
Export-CMDriverPackage [-Comment ] [-Confirm] [-DisableWildcardHandling] -ExportFilePath 
 [-ForceWildcardHandling] -Name  [-WhatIf] [-WithContent ] [-WithDependence ]
 []

Description

The Export-CMDriverPackage cmdlet exports one or more driver packages to a .zip file.

Examples

Example 1: Export a driver package

PS C:\>Export-CMDriverPackage -Name "DrvPkg01" -ExportFilePath "\\Contoso02\DriverPackages\DriverPackage01.zip"

This command exports the driver package named DrvPkg01 to the export file DriverPackage01.zip.

Required Parameters

-ExportFilePath

Specifies the full path for the export file.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Id

Specifies an array of IDs of driver packages.

Type:String
Aliases:PackageId
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a driver package object. To obtain a CMDriverPackage object, use the Get-CMDriverPackage cmdlet.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of a driver package.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Comment
Type:String
Aliases:Comments
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WithContent

Specifies whether to export the content files for the driver packages and drivers.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WithDependence

Specifies whether to export all drivers associated with the driver package.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False