diff --git a/win10-debloat/1_DelPackages.ps1 b/win10-debloat/1_DelPackages.ps1 new file mode 100644 index 0000000..e8b023b --- /dev/null +++ b/win10-debloat/1_DelPackages.ps1 @@ -0,0 +1,19 @@ +Get-AppxPackage -AllUsers -Name Microsoft.3DBuilder | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.Getstarted | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.MicrosoftOfficeHub | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.SkypeApp | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.WindowsMaps | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.BingWeather | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.Office.OneNote | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.ZuneMusic | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.ZuneVideo | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.BingSports | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.BingNews | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.WindowsPhone | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.BingFinance | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.WindowsSoundRecorder | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.Windows.Photos | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.WindowsCamera | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.WindowsAlarms | Remove-AppxPackage +Get-AppxPackage -AllUsers -Name Microsoft.People | Remove-AppxPackage diff --git a/win10-debloat/2_DelOneDrive.cmd b/win10-debloat/2_DelOneDrive.cmd new file mode 100644 index 0000000..bb3c969 --- /dev/null +++ b/win10-debloat/2_DelOneDrive.cmd @@ -0,0 +1,27 @@ +@echo off +cls + +set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe" +set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe" + +echo Closing OneDrive process. +taskkill /f /im OneDrive.exe > NUL 2>&1 +ping 127.0.0.1 -n 5 > NUL 2>&1 + +echo Uninstalling OneDrive. +if exist %x64% ( +%x64% /uninstall +) else ( +%x86% /uninstall +) +ping 127.0.0.1 -n 5 > NUL 2>&1 + +echo Removing OneDrive leftovers. +rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1 +rd "C:\OneDriveTemp" /Q /S > NUL 2>&1 +rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1 +rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1 + +echo Removing OneDrive from the Explorer Side Panel. +REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1 +REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1 diff --git a/win10-debloat/3_DelCortonaTelBiometrics.reg b/win10-debloat/3_DelCortonaTelBiometrics.reg new file mode 100644 index 0000000..5f2c557 --- /dev/null +++ b/win10-debloat/3_DelCortonaTelBiometrics.reg @@ -0,0 +1,10 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] +"AllowCortana"=dword:00000000 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv] +"Start"=dword:00000004 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WbioSrvc] +"Start"=dword:00000004 \ No newline at end of file diff --git a/win10-debloat/4_DelTouchLockScreen.reg b/win10-debloat/4_DelTouchLockScreen.reg new file mode 100644 index 0000000..d0d65a2 --- /dev/null +++ b/win10-debloat/4_DelTouchLockScreen.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization] +"NoLockScreen"=dword:00000001 \ No newline at end of file diff --git a/win10-debloat/5_DelTracking.ps1 b/win10-debloat/5_DelTracking.ps1 new file mode 100644 index 0000000..57f69a5 --- /dev/null +++ b/win10-debloat/5_DelTracking.ps1 @@ -0,0 +1,2 @@ +Stop-Service DiagTrack +Set-Service DiagTrack -StartupType Disabled diff --git a/win10-debloat/README.md b/win10-debloat/README.md new file mode 100644 index 0000000..0f4e232 --- /dev/null +++ b/win10-debloat/README.md @@ -0,0 +1,5 @@ +1. Start a console with admin rights (right click on start menu button). +2. Run Powershell if not already. +3. Ensure correct execution policy: `Set-ExecutionPolicy Unrestricted` +4. Run the scripts you want. "reg" files can be run and will set registry keys. +5. Reset execution policy: `Set-ExecutionPolicy AllSigned`