Upravit

Sdílet prostřednictvím


wdsutil get-alldriverpackages

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Displays information about all the driver packages on a server that match the specified search criteria.

Syntax

wdsutil /get-alldriverpackages [/server:<servername>] [/show:{drivers | files | all}] [/filtertype:<filtertype> /operator:{equal | notequal | greaterorequal | lessorequal | contains} /value:<value> [/value:<value> ...]]

Parameters

Parameter Description
[/server:<servername>] The name of the server. This can be the NetBIOS name or the FQDN. If a server name isn't specified, the local server is used.
[/show:{drivers | files | all}] Indicates the package information to display. If /show isn't specified, the default is to return only the driver package metadata. Drivers displays the list of drivers in the package, files displays the list of files in the package, and all displays drivers and files.
/filtertype:<filtertype> 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.

The <filtertype> can be one of the following:

  • PackageId
  • PackageName
  • PackageEnabled
  • Packagedateadded
  • PackageInfFilename
  • PackageClass
  • PackageProvider
  • PackageArchitecture
  • PackageLocale
  • PackageSigned
  • PackagedatePublished
  • Packageversion
  • Driverdescription
  • DriverManufacturer
  • DriverHardwareId
  • DrivercompatibleId
  • DriverGroupId
  • DriverGroupName
/operator:{equal | notequal | greaterorequal | lessorequal | contains} Specifies the relationship between the attribute and the values. You can specify contains only with string attributes. You can specify greaterorequal and lessorequal only with date and version attributes.
/value:<value> Specifies the value to search on for the specified <attribute>. You can specify multiple values for a single /filtertype. The list below outlines the attributes you can specify for each filter. For more information about these attributes, see Driver and Package attributes. The attributes can include:
  • PackageId. Specifies a valid GUID. For example:{4d36e972-e325-11ce-bfc1-08002be10318}.
  • PackageName. Specifies any string value.
  • PackageEnabled. Specifies Yes or No.
  • Packagedateadded. Specifies the date in the following format: YYYY/MM/DD
  • PackageInfFilename. Specifies any string value.
  • PackageClass. Specifies a valid class name or class GUID. For example: DiskDrive, Net, or {4d36e972-e325-11ce-bfc1-08002be10318}.
  • PackageProvider. Specifies any string value.
  • PackageArchitecture. Specifies x86, x64, or ia64.
  • PackagLocale. Specifies a valid language identifier. For example: en-US or es-ES.
  • PackageSigned. Specifies Yes or No.
  • PackagedatePublished. Specifies the date in the following format: YYYY/MM/DD.
  • Packageversion. Specifies the version in the following format: a.b.x.y. For example: 6.1.0.0.
  • Driverdescription. Specifies any string value.
  • DriverManufacturer. Specifies any string value.
  • DriverHardwareId. Specifies any string value.
  • DrivercompatibleId. Specifies any string value.
  • DriverExcludeId. Specifies any string value.
  • DriverGroupId. Specifies a valid GUID. For example: {4d36e972-e325-11ce-bfc1-08002be10318}.
  • DriverGroupName. Specifies any string value.

Examples

To display information, type either:

wdsutil /get-alldriverpackages /server:MyWdsServer /show:all /filtertype:drivergroupname /operator:contains /value:printer /filtertype:packagearchitecture /operator:equal /value:x64 /value:x86
wdsutil /get-alldriverpackages /show:drivers /filtertype:packagedateadded /operator:greaterorequal /value:2008/01/01