Remove-CMDriverFromDriverPackage

Removes a driver from a driver package.

Syntax

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

Description

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

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1: Remove a driver from a driver package

PS XYZ:\> 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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

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

-Driver

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

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

-DriverId

Specifies the ID of a driver.

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

-DriverName

Specifies the name of a driver.

Type:String
Position:Named
Default value:None
Required:True
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
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DriverPackageId

Specifies the ID of a driver package.

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

-DriverPackageName

Specifies the name of a driver package.

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

-Force

Forces the command to run without asking for user confirmation.

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

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

-UpdateDistributionPoints

{{ Fill UpdateDistributionPoints Description }}

Type:Boolean
Aliases:UpdateDistributionPoint, UpdateDistributionPointForDriverPackage, UpdateDistributionPointsForDriverPackage
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet doesn't run.

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

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object