/remove-DriverPackages
Updated: April 17, 2012
Applies To: Windows Server 2008 R2
Removes driver packages from the server.
Syntax
WDSUTIL /Remove-DriverPackages [/Server:<Server name>] /FilterType:<Filter Type> /Operator:{Equal | NotEqual | GreaterOrEqual | LessOrEqual | Contains} /Value:<Value> [/Value:<Value> ...]
Parameters
Parameter | Description |
---|---|
[/Server:<Server name>] |
Specifies the name of the server. This can be the NetBIOS name or the FQDN. If a server name is not specified, the local server is used. |
/FilterType:<Filter Type> |
Specifies the attribute of the driver package to search for. You can specify multiple attributes in a single command. You must also specify /Operator and /Value with this option. <Filter Type> can be one of the following: PackageId PackageName PackageEnabled PackageDateAdded PackageInfFilename PackageClass PackageProvider PackageArchitecture PackageLocale PackageSigned PackageDatePublished PackageVersion DriverDescription DriverManufacturer DriverHardwareId DriverCompatibleId DriverExcludeId DriverGroupId DriverGroupName |
/Operator:{Equal | NotEqual | GreaterOrEqual | LessOrEqual | Contains} |
Specifies the relationship between the attribute and the values. You can only specify Contains with string attributes. You can only specify GreaterOrEqual and LessOrEqual with date and version attributes. |
/Value:<Value> |
Specifies the value to search for the specified <Attribute>. You can specify multiple values for a single /FilterType. The following list outlines the attributes that you can specify for each filter. For more information about these attributes, see Driver and Package Attributes (https://go.microsoft.com/fwlink/?LinkId=166895).
|
Examples
To remove packages, type one of the following:
WDSUTIL /verbose /Remove-DriverPackages /Server:MyWdsServer
/FilterType:PackageProvider /Operator:Equal /Value:Name1 /Value:Name2
WDSUTIL /Remove-DriverPackages /FilterType:PackageArchitecture /Operator:Equal
/Value:x86 /Value:x64 /FilterType:PackageEnabled /Operator:Equal /Value:No
WDSUTIL /verbose /Remove-DriverPackages /Server:MyWdsServer
/FilterType:PackageDateAdded /Operator:LessOrEqual /Value:2008/01/01