Add-CMDriverToDriverPackage

Add-CMDriverToDriverPackage

Adds a device driver to a driver package.

Syntax

Parameter Set: AddDriverToDriverPackageById_Id
Add-CMDriverToDriverPackage -DriverId <String> -DriverPackageId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageById_Name
Add-CMDriverToDriverPackage -DriverId <String> -DriverPackageName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageById_Object
Add-CMDriverToDriverPackage -DriverId <String> -DriverPackage <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageByName_Id
Add-CMDriverToDriverPackage -DriverName <String> -DriverPackageId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageByName_Name
Add-CMDriverToDriverPackage -DriverName <String> -DriverPackageName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageByName_Object
Add-CMDriverToDriverPackage -DriverName <String> -DriverPackage <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageByObject_Id
Add-CMDriverToDriverPackage -Driver <IResultObject> -DriverPackageId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageByObject_Name
Add-CMDriverToDriverPackage -Driver <IResultObject> -DriverPackageName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDriverToDriverPackageByObject_Object
Add-CMDriverToDriverPackage -Driver <IResultObject> -DriverPackage <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Add-CMDriverToDriverPackage cmdlet adds a device driver to a driver package. You can add Windows device drivers that have been imported into the driver catalog to an existing driver package. When a device driver is added to a driver package, Microsoft System Center 2012 SP1 Configuration Manager copies the device driver content from the driver source location to the driver package.

Parameters

-Driver<IResultObject>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverId<String>

Specifies the ID of a driver.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverName<String>

Specifies the name of a driver.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackage<IResultObject>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackageId<String>

Specifies the ID of a driver package.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackageName<String>

Specifies the name of a driver package.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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: Add a driver to a driver package

This command adds the driver named Adaptec Embedded SCSI HostRAID Controller to the driver package named DrvPkg01.

PS C:\> Add-CMDriverToDriverPackage -DriverName "Adaptec Embedded SCSI HostRAID Controller" -DriverPackageName "DrvPkg01"

Remove-CMDriverFromDriverPackage

Get-CMDriver

Get-CMDriverPackage