added and tested uninstall telemtry script

This commit is contained in:
Michael H.G. Schmidt 2021-03-06 14:00:47 +01:00
parent 335cc4afe2
commit a31bee6289
2 changed files with 18 additions and 15 deletions

View File

@ -0,0 +1,16 @@
# REMOVE the Store ...
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
$ErrorActionPreference = 'SilentlyContinue'
Get-AppxPackage -AllUsers |
where-object {$_.name -like "*store*"} |
Remove-AppxPackage
Get-AppxProvisionedPackage -online |
where-object {$_.displayname -like "*store*"} |
Remove-AppxProvisionedPackage -online
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'

View File

@ -25,11 +25,8 @@ set answer=
echo.
echo OK ... trying to remove ALL the stupid fucking microsoft TELEMETRY BULLSHIT!
exit /b
echo.
echo ADDING some registry keys to disable telemetry ...
echo.
reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" ^
/v "EnabledV9" /t REG_DWORD /d "0" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d 0 /f
@ -88,7 +85,6 @@ reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\Firewall
echo.
echo DELETING some registry keys to disable telemetry ...
echo.
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /f
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\xbgm" /f
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Sense" /f
@ -116,7 +112,6 @@ for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^
echo.
echo DELETING some services ...
echo.
sc delete PushToInstall
sc delete XblAuthManager
sc delete XblGameSave
@ -143,12 +138,10 @@ sc delete diagnosticshub.standardcollector.service
echo.
echo RECONFIGURING some services ...
echo.
sc config wlidsvc start=demand
echo.
echo DISABLING some tasks ...
echo.
schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTask" /disable
schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTaskLogon" /disable
schtasks /Change /TN "\Microsoft\Windows\Maps\MapsUpdateTask" /disable
@ -195,23 +188,17 @@ schtasks /Change /TN "\Microsoft\Windows\NetTrace\GatherNetworkInfo" /disable
echo.
echo DELETING shadow copies ...
echo.
vssadmin delete shadows /all /Quiet
echo.
echo DELETING some files ...
echo.
del /F /Q "C:\Windows\System32\Tasks\Microsoft\Windows\SettingSync\*"
echo.
echo REMOVING the store ...
echo.
powershell -Command "$ErrorActionPreference = 'SilentlyContinue' ^
Get-AppxPackage -AllUsers | where-object {$_.name -like "*store*"} | Remove-AppxPackage ^
Get-AppxProvisionedPackage -online | where-object {$_.displayname -like "*store*"} | ^
Remove-AppxProvisionedPackage -online"
echo.
powershell -Command ./uninstall-store.ps1
echo.
echo ####### %0 #######
pause