Showing posts with label windows 10. Show all posts
Showing posts with label windows 10. Show all posts

Monday, November 5, 2018

How to Disable Tracking in Windows 10

Disable Metrics:
@Echo Off
:checkPrivileges
NET FILE 1>NUL 2>NUL
If '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
If '%1'=='ELEV' (shift & goto gotPrivileges)
Setlocal DisableDelayedExpansion
Set "batchPath=%~0"
Setlocal EnableDelayedExpansion
Echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
Echo UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%temp%\OEgetPrivileges.vbs"
Exit /B
:gotPrivileges
Setlocal & pushd .
echo *      Disable Telemetry
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
echo *      Disable DiagTrack
sc delete DiagTrack
sc delete dmwappushservice
reg add "HKLM\SYSTEM\CurrentControlSet\Services" /v DiagTrack /t REG_DWORD /d 4 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services" /v dmwappushservice /t REG_DWORD /d 4 /f
echo *      Clear DiagTrack Log
echo "" > C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl
echo *      Disable Cortana/Bing Search and Searchbar
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f > NUL 2>&1
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f > NUL 2>&1
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 4 /f > NUL 2>&1
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d 0 /f > NUL 2>&1
pause

Disable update nag:
@Echo Off
:checkPrivileges
NET FILE 1>NUL 2>NUL
If '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
If '%1'=='ELEV' (shift & goto gotPrivileges)
Setlocal DisableDelayedExpansion
Set "batchPath=%~0"
Setlocal EnableDelayedExpansion
Echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
Echo UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%temp%\OEgetPrivileges.vbs"
Exit /B
:gotPrivileges
Setlocal & pushd .
cd /d "%Windir%\System32"
takeown /F MusNotification.exe
icacls MusNotification.exe /deny Everyone:(X)
takeown /F MusNotificationUx.exe
icacls MusNotificationUx.exe /deny Everyone:(X)
pause
Win+R -> type in 'Powershell' -> Copy/Paste:
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *bingfinance* | Remove-AppxPackage
Get-AppxPackage *bingnews* | Remove-AppxPackage
Get-AppxPackage *bingsports* | Remove-AppxPackage
Get-AppxPackage *bingweather* | Remove-AppxPackage
Get-AppxPackage *feedback* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *messaging* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *oneconnect* | Remove-AppxPackage
Get-AppxPackage *onenote* | Remove-AppxPackage
Get-AppxPackage *people* | Remove-AppxPackage
Get-AppxPackage *phone* | Remove-AppxPackage
Get-AppxPackage *photos* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *skypevideo* | Remove-AppxPackage
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
Get-AppxPackage *soundrecorder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Get-AppxPackage *windowsphone* | Remove-AppxPackage
Get-AppxPackage *windowsstore* | Remove-AppxPackage
Get-AppxPackage *xboxapp* | Remove-AppxPackage
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxPackage *zunevideo* | Remove-AppxPackage



Monday, August 31, 2015

Protecting Windows 7 and 8 From Windows 10

Yes, they're going to keep pushing win10 updates and telemetry. But here's a way to clean your windows machine of upgrade and telemetry updates with what we know today:
[Don't do this if you ever plan to upgrade to 10]
wusa /uninstall /KB:2952664 /norestart /quiet
wusa /uninstall /KB:2990214 /norestart /quiet
wusa /uninstall /KB:3021917 /norestart /quiet
wusa /uninstall /KB:3022345 /norestart /quiet
wusa /uninstall /KB:3035583 /norestart /quiet
wusa /uninstall /KB:3044374 /norestart /quiet
wusa /uninstall /KB:3068708 /norestart /quiet 
wusa /uninstall /KB:3075249 /norestart /quiet
wusa /uninstall /KB:3080149 /norestart /quiet
You can save that as a .bat file and run it. You may need to run as administrator. Or you can just run each command in the console (drop /quiet to see output).
Go back into the windows update tool, find any of these numbers, then right-click and select "Hide update". You won't see it offered again (unless they change the KB number).
Links to KB pages:
KB cleaning reddit threads that I found: