-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoTelemetry.ps1
25 lines (18 loc) · 1.54 KB
/
noTelemetry.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
New-Item -Path "HKLM:\Software\Policies\Microsoft\Windows\DataCollection" -Force
Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Value 0
New-Item -Path "HKLM:\Software\Policies\Microsoft\SQMClient\Windows" -Force
Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\SQMClient\Windows" -Name "CEIPEnable" -Value 0
New-Item -Path "HKLM:\Software\Policies\Microsoft\Windows\Feedback" -Force
Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Feedback" -Name "DoNotShowFeedbackNotifications" -Value 1
Stop-Service diagtrack -Force
Set-Service diagtrack -StartupType Disabled
Stop-Service dmwappushsvc -Force
Set-Service dmwappushsvc -StartupType Disabled
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "0.0.0.0 vortex.data.microsoft.com"
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "0.0.0.0 settings-win.data.microsoft.com"
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "0.0.0.0 watson.telemetry.microsoft.com"
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "0.0.0.0 telemetry.microsoft.com"
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "0.0.0.0 ssw.live.com"
Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Value 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Value 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Value 0