wdsutil remove-drivergrouppackages
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Removes driver packages from a driver group on a server.
Syntax
wdsutil /remove-DriverGroupPackages /DriverGroup:<Group Name> [/Server:<Server Name>] /Filtertype:<Filter type> /Operator:{Equal | NotEqual | GreaterOrEqual | LessOrEqual | Contains} /Value:<Value> [/Value:<Value> ...]
Parameters
Parameter | Description |
---|---|
/DriverGroup:<Group Name> | Specifies the name of the driver group. |
[/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). - PackageId - Specify a valid GUID. For example: {4d36e972-e325-11ce-bfc1-08002be10318}. |
Examples
To remove driver packages from a driver group, type one of the following:
wdsutil /verbose /remove-DriverGroupPackages /DriverGroup:printerdrivers
/Filtertype:DriverManufacturer /Operator:NotEqual /Value:Name1 /Value:Name2
wdsutil /verbose /remove-DriverGroupPackages /DriverGroup:DisplayDrivers
/Filtertype:PackageArchitecture /Operator:Equal /Value:x86
/Filtertype:Packagedateadded /Operator:LessOrEqual /Value:2008/01/01
Related links
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru