Ostatnio aktywny 6 months ago

powershell script to (re-)enable telemetry in win10

scusi zrewidował ten Gist 6 months ago. Przejdź do rewizji

Brak zmian

Florian Walther zrewidował ten Gist 6 years ago. Przejdź do rewizji

1 file changed, 13 insertions

enableTelemetry.ps1(stworzono plik)

@@ -0,0 +1,13 @@
1 + # powershell script to (re-)enable telemetry in win10
2 + #
3 + # flw@posteo.de
4 + #
5 +
6 + # run as admin
7 + if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
8 +
9 + # Step 1: deactivate DiagTrack service
10 + Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\DiagTrack\ -name Start -Value 2
11 +
12 + # Step 2: deactivate Autologger-Diagtrack-Listener
13 + Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\WMI\Autologger\AutoLogger-Diagtrack-Listener\ -name Start -Value 1
Nowsze Starsze