赞
踩
同时可查看我的个人博客:http://heibanbai.com.cn/posts/857a238a/
Open PowerShell as Administator.
In the elevated PowerShell window, copy and paste the following command, all at once, and hit Enter to run it.
命令如下:
$path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection"
# Telemetry level: 1 - basic, 3 - full
$value = "3"
New-ItemProperty -Path $path -Name AllowTelemetry -Value $value -Type Dword -Force
New-ItemProperty -Path $path -Name MaxTelemetryAllowed -Value $value -Type Dword -Force
Restart the OS.
执行结果:
PS C:\WINDOWS\system32> $path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" PS C:\WINDOWS\system32> # Telemetry level: 1 - basic, 3 - full PS C:\WINDOWS\system32> $value = "3" PS C:\WINDOWS\system32> New-ItemProperty -Path $path -Name AllowTelemetry -Value $value -Type Dword -Force AllowTelemetry : 3 PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Polic ies\DataCollection PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Polic ies PSChildName : DataCollection PSDrive : HKLM PSProvider : Microsoft.PowerShell.Core\Registry PS C:\WINDOWS\system32> New-ItemProperty -Path $path -Name MaxTelemetryAllowed -Value $value -Type Dword -Force MaxTelemetryAllowed : 3 PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Policies\DataCollection PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Policies PSChildName : DataCollection PSDrive : HKLM PSProvider : Microsoft.PowerShell.Core\Registry PS C:\WINDOWS\system32>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。