子命令: set-DriverGroupSubcommand: set-DriverGroup

适用于: 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

设置服务器上的现有驱动程序组的属性。Sets the properties of an existing driver group on a server.

语法Syntax

wdsutil /Set-DriverGroup /DriverGroup:<Group Name> [/Server:<Server Name>] [/Name:<New Group Name>] [/Enabled:{Yes | No}] [/Applicability:{Matched | All}]

参数Parameters

参数Parameter 说明Description
/DriverGroup:/DriverGroup: 指定驱动程序组的名称。Specifies the name of the driver group.
[/Server: ][/Server:] 指定服务器的名称。Specifies the name of the server. 此名称可以是 NetBIOS 名称或 FQDN。This can be the NetBIOS name or the FQDN. 如果未指定服务器名称,则使用本地服务器。If a server name is not specified, the local server is used.
[/Name: ][/Name:] 指定驱动程序组的新名称。Specifies the new name for the driver group.
[/Enabled: {Yes | No}[/Enabled:{Yes | No} 启用或禁用驱动程序组。Enables or disables the driver group.
[/Applicability: {匹配 | 所有}][/Applicability:{Matched | All}] 如果满足筛选条件,则指定要安装的程序包。Specifies which packages to install if the filter criteria is met. 匹配 意味着仅安装与客户端硬件匹配的驱动程序包。Matched means install only the driver packages that match a client s hardware. All 表示将所有程序包安装到客户端,而不考虑其硬件。All means install all packages to clients regardless of their hardware.

示例Examples

若要设置驱动程序组的属性,请键入下列内容之一:To set the properties for a driver group, type one of the following:

wdsutil /Set-DriverGroup /DriverGroup:printerdrivers /Enabled:Yes
wdsutil /Set-DriverGroup /DriverGroup:printerdrivers /Name:colorprinterdrivers /Applicability:All

其他参考Additional References