Remove-CMDriverFromDriverPackage

Removes a driver from a driver package.

Syntax

Remove-CMDriverFromDriverPackage
      [-Confirm]
      [-DisableWildcardHandling]
      -Driver <IResultObject>
      -DriverPackageName <String>
      [-Force]
      [-ForceWildcardHandling]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -Driver 
 -DriverPackageId  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -Driver 
 -DriverPackage  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -DriverId 
 -DriverPackageId  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -DriverId 
 -DriverPackage  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -DriverId 
 -DriverPackageName  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -DriverName 
 -DriverPackageId  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -DriverName 
 -DriverPackageName  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDriverFromDriverPackage [-Confirm] [-DisableWildcardHandling] -DriverName 
 -DriverPackage  [-Force] [-ForceWildcardHandling] [-WhatIf] []

Description

The Remove-CMDriverFromDriverPackage cmdlet removes a driver from a driver package in Microsoft System Center 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.

Examples

Example 1: Remove a driver from a driver package

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

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

Required Parameters

-Driver

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

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

Specifies the ID of a driver.

Type:Int32
Aliases:CIId, Id, CI_ID
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DriverName

Specifies the name of a driver.

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

Specifies a CMDriverPackage 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
-DriverPackageId

Specifies the ID of a driver package.

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

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

-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
-Force

Forces the command to run without asking for user confirmation.

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