wdsutil 外接程序 drivergrouppackageswdsutil add-drivergrouppackages

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

添加驱动程序组包。Adds driver group packages.

语法Syntax

wdsutil /add-DriverGroupPackages /DriverGroup:<Group Name> [/Server:<Server Name>] /Filtertype:<Filter type> /Operator:{Equal | NotEqual | GreaterOrEqual | LessOrEqual | Contains} /Value:<Value> [/Value:<Value>

参数Parameters

参数Parameter 说明Description
/DriverGroup:/DriverGroup: 指定驱动程序组的名称。Specifies the name of the driver group.
服务/Server: 指定服务器的名称。Specifies the name of the server. 此名称可以是 NetBIOS 名称或 FQDN。This can be the NetBIOS name or the FQDN. 如果未指定服务器名称,则使用本地服务器。If no server name is specified, the local server is used.
Filtertype/Filtertype: 指定要搜索的驱动程序包的属性。Specifies the attribute of the driver package to search for. 可以在单个命令中指定多个属性。You can specify multiple attributes in a single command. 还必须在此选项中指定/Operator 和/Value。You must also specify /Operator and /Value with this option.

可以是下列其中一项: can be one of the following:

PackageIdPackageId

PackageNamePackageName

PackageEnabledPackageEnabled

PackagedateaddedPackagedateadded

PackageInfFilenamePackageInfFilename

PackageClassPackageClass

Install-packageproviderPackageProvider

PackageArchitecturePackageArchitecture

PackageLocalePackageLocale

PackageSignedPackageSigned

PackagedatePublishedPackagedatePublished

PackageversionPackageversion

DriverdescriptionDriverdescription

DriverManufacturerDriverManufacturer

DriverHardwareIdDriverHardwareId

DrivercompatibleIdDrivercompatibleId

DriverExcludeIdDriverExcludeId

DriverGroupIdDriverGroupId

DriverGroupNameDriverGroupName

/Operator: {等于 | NotEqual | GreaterOrEqual | LessOrEqual | 包含}/Operator:{Equal | NotEqual | GreaterOrEqual | LessOrEqual | Contains} 指定属性和值之间的关系。Specifies the relationship between the attribute and the values. 只能将 Contains 指定为字符串属性。You can only specify Contains with string attributes. 只能用 date 和 version 特性指定 NotEqualGreaterOrEqualLessOrEqualYou can only specify Equal, NotEqual, GreaterOrEqual and LessOrEqual with date and version attributes.
负值/Value: 指定对应于 /Filtertype的客户端值。Specifies the client value corresponding to /Filtertype. 可以为单个 /Filtertype指定多个值。You can specify multiple values for a single /Filtertype. 以下列表概述了可以为每个筛选器指定的值。The following list outlines the values that you can specify for each filter. 有关这些值的详细信息,请参阅 () 的 驱动程序和包属性 https://go.microsoft.com/fwlink/?LinkId=166895For more information about these values, see Driver and Package attributes (https://go.microsoft.com/fwlink/?LinkId=166895).

-PackageId-指定有效的 GUID。- PackageId - Specify a valid GUID. 例如: {4d36e972-e325-11ce-bfc1-08002be10318}。For example: {4d36e972-e325-11ce-bfc1-08002be10318}.
-PackageName 指定任意字符串值。- PackageName Specify any string value.
-PackageEnabled-指定 YesNo- PackageEnabled - Specify Yes or No.
-Packagedateadded-按以下格式指定日期: YYYY/MM/DD- Packagedateadded - Specify the date in the following format: YYYY/MM/DD
-PackageInfFilename 指定任意字符串值。- PackageInfFilename Specify any string value.
-PackageClass-指定有效的类名或类 GUID。- PackageClass - Specify a valid class name or class GUID. 例如: DiskDriveNet或 {4d36e972-e325-11ce-bfc1-08002be10318}。For example: DiskDrive, Net, or {4d36e972-e325-11ce-bfc1-08002be10318}.
-Install-packageprovider 指定任意字符串值。- PackageProvider Specify any string value.
-PackageArchitecture-指定 x86x64ia64- PackageArchitecture - Specify x86, x64, or ia64.
-PackageLoale-指定有效的语言标识符。- PackageLoale - Specify a valid language identifier. 例如: en-usesFor example: en-US or es-ES.
-PackageSigned-指定 YesNo- PackageSigned - Specify Yes or No.
-PackagedatePublished-按以下格式指定日期: YYYY/MM/DD- PackagedatePublished - Specify the date in the following format: YYYY/MM/DD
-Packageversion-指定以下格式的版本: a.b.x.y。- Packageversion - Specify the version in the following format: a.b.x.y. 例如:6.1.0。0For example: 6.1.0.0
-Driverdescription 指定任意字符串值。- Driverdescription Specify any string value.
-DriverManufacturer 指定任意字符串值。- DriverManufacturer Specify any string value.
-DriverHardwareId-指定任意字符串值。- DriverHardwareId - Specify any string value.
-DrivercompatibleId-指定任意字符串值。- DrivercompatibleId - Specify any string value.
-DriverExcludeId-指定任意字符串值。- DriverExcludeId - Specify any string value.
-DriverGroupId-指定有效的 GUID。- DriverGroupId - Specify a valid GUID. 例如: {4d36e972-e325-11ce-bfc1-08002be10318}。For example: {4d36e972-e325-11ce-bfc1-08002be10318}.
-DriverGroupName 指定任意字符串值。- DriverGroupName Specify any string value.

示例Examples

若要添加驱动程序包,请键入下列内容之一:To add a driver package, type one of the following:

wdsutil /verbose /add-DriverGroupPackages /DriverGroup:printerdrivers /Filtertype:PackageClass /Operator:Equal /Value:printer /Filtertype:DriverManufacturer /Operator:NotEqual /Value:Name1 /Value:Name2
wdsutil /verbose /add-DriverGroupPackages /DriverGroup:DisplayDriversX86 /Filtertype:PackageClass /Operator:Equal /Value:Display /Filtertype:PackageArchitecture /Operator:Equal /Value:x86 /Filtertype:Packagedateadded /Operator:LessOrEqual /Value:2008/01/01

其他参考Additional References