fondue

适用范围:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

通过从 Windows 更新或组策略指定的其他源下载所需的文件来启用 Windows 可选功能。 功能的清单文件必须已安装在 Windows 映像中。

语法

fondue.exe /enable-feature:<feature_name> [/caller-name:<program_name>] [/hide-ux:{all | rebootrequest}]

参数

参数 说明
/enable-feature:<feature_name> 指定要启用的 Windows 可选功能的名称。 每个命令行只能启用一项功能。 若要启用多项功能,请为每项功能使用 fondue.exe。
/caller-name:<program_name> 指定从脚本或批处理文件调用 fondue.exe 时的程序或进程名称。 如果出现错误,可以使用此选项将程序名称添加到 SQM 报告。
/hide-ux:{all | rebootrequest} 使用 all 可隐藏发送给用户的所有消息,包括访问 Windows 更新的进度和权限请求。 如果需要权限,操作将失败。

使用 rebootrequest 仅隐藏请求计算机重启权限的用户消息。 如果有控制重启请求的脚本,请使用此选项。

示例

若要启用 Microsoft .NET Framework 4.8,请键入:

fondue.exe /enable-feature:NETFX4

若要启用 Microsoft .NET Framework 4.8,请将程序名称添加到 SQM 报告,但不向用户显示消息,请键入:

fondue.exe /enable-feature:NETFX4 /caller-name:Admin.bat /hide-ux:all