Set-TelemetrySet-Telemetry

摘要Synopsis

启用或禁用将遥测数据传输到 Microsoft。Enables or disables the transfer of telemetry data to Microsoft.

语法Syntax

Set-Telemetry [-Disable] [-Enable] [-AsJob]

说明Description

Set-Telemetry cmdlet 允许通过更改注册表中的相应设置来控制是否将遥测数据发送到 Microsoft。The Set-Telemetry cmdlet lets you control whether or not telemetry data is sent to Microsoft by changing the corresponding setting in the registry.

具体而言,此 cmdlet 将域组策略配置为将遥测注册表值设置为 0,并使 Windows UTC 服务停止在任何基础结构 VM 和主机上运行。Specifically, this cmdlet configures the domain group policy to set the telemetry registry value to 0 and stop the Windows UTC service from running on all infrastructure VMs and hosts.

示例Examples

示例 1Example 1

Set-Telemetry -Enable

示例 2Example 2

Set-Telemetry -Disable

parametersParameters

-Enable-Enable

启用将遥测数据传输到 Microsoft。Enables the transfer of telemetry data to Microsoft.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Disable-Disable

禁用将遥测数据传输到 Microsoft。Disables the transfer of telemetry data to Microsoft.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AsJob-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

后续步骤Next steps

有关如何访问和使用特权终结点的详细信息,请参阅使用 Azure Stack Hub 中的特权终结点For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.