Skip to content

Instantly share code, notes, and snippets.

@scusi
Created November 9, 2019 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scusi/d7cb626432e3ca8c56b9cef164c07465 to your computer and use it in GitHub Desktop.
Save scusi/d7cb626432e3ca8c56b9cef164c07465 to your computer and use it in GitHub Desktop.
# powershell script to (re-)enable telemetry in win10
#
# flw@posteo.de
#
# run as admin
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 }
# Step 1: deactivate DiagTrack service
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\DiagTrack\ -name Start -Value 2
# Step 2: deactivate Autologger-Diagtrack-Listener
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\WMI\Autologger\AutoLogger-Diagtrack-Listener\ -name Start -Value 1
@scusi
Copy link
Author

scusi commented Nov 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment