Stop-Service DiagTrack -ErrorAction SilentlyContinue Set-Service DiagTrack -StartupType Disabled Stop-Service dmwappushservice -ErrorAction SilentlyContinue Set-Service dmwappushservice -StartupType Disabled Write-Output "Disabling telemetry-related scheduled tasks..." $tasks = @( @{ Path = "\Microsoft\Windows\Application Experience\"; Name = "ProgramDataUpdater" }, @{ Path = "\Microsoft\Windows\Application Experience\"; Name = "Microsoft Compatibility Appraiser" }, @{ Path = "\Microsoft\Windows\Application Experience\"; Name = "AitAgent" }, @{ Path = "\Microsoft\Windows\Customer Experience Improvement Program\"; Name = "Consolidator" }, @{ Path = "\Microsoft\Windows\Customer Experience Improvement Program\"; Name = "UsbCeip" }, @{ Path = "\Microsoft\Windows\Customer Experience Improvement Program\"; Name = "KernelCeipTask" }, @{ Path = "\Microsoft\Windows\Autochk\"; Name = "Telemetry-4hd" }, @{ Path = "\Microsoft\Windows\DiskDiagnostic\"; Name = "Microsoft-Windows-DiskDiagnosticDataCollector" } ) foreach ($task in $tasks) { Disable-ScheduledTask -TaskPath $task.Path -TaskName $task.Name -ErrorAction SilentlyContinue Write-Output "Disabled task: $($task.Path)$($task.Name)" } New-Item -Path "HKLM:\Software\Policies\Microsoft\Windows\DataCollection" -Force | Out-Null Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0