Export (0) Print
Expand All
Expand Minimize

Remove-CMDriverFromDriverPackage

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Remove-CMDriverFromDriverPackage

Removes a driver from a driver package.

Syntax

Parameter Set: RemoveDriverFromDriverPackageById_Id
Remove-CMDriverFromDriverPackage -DriverId <String> -DriverPackageId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageById_Name
Remove-CMDriverFromDriverPackage -DriverId <String> -DriverPackageName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageById_Object
Remove-CMDriverFromDriverPackage -DriverId <String> -DriverPackage <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageByName_Id
Remove-CMDriverFromDriverPackage -DriverName <String> -DriverPackageId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageByName_Name
Remove-CMDriverFromDriverPackage -DriverName <String> -DriverPackageName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageByName_Object
Remove-CMDriverFromDriverPackage -DriverName <String> -DriverPackage <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageByObject_Id
Remove-CMDriverFromDriverPackage -Driver <IResultObject> -DriverPackageId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageByObject_Name
Remove-CMDriverFromDriverPackage -Driver <IResultObject> -DriverPackageName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDriverFromDriverPackageByObject_Object
Remove-CMDriverFromDriverPackage -Driver <IResultObject> -DriverPackage <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-CMDriverFromDriverPackage cmdlet removes a driver from a driver package in Microsoft System Center 2012 Configuration Manager. When you remove a driver from a driver package, the device driver content is deleted from the source directory share for 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 CMDriverPackage 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

-Force

Performs the action without a confirmation message.


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: Remove a driver from a driver package

This command removes the driver named Adaptec Embedded SCSI HostRAID Controller from the boot image named DrvPkg01.


PS C:\> Remove-CMDriverfromDriverPackage -DriverName "Adaptec Embedded SCSI HostRAID Controller" -DriverPackageName "DrvPkg01"

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft