Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Windows 10 debloating set
@echo off
:: OneDrive removal tool for windows 10
:: edited version of: http://wayback.archive.org/web/20150811115546/http://secondclock.net/?p=28
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º OneDrive remover º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
pause
color 0e
set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
echo Closing OneDrive process.
echo.
taskkill /f /im OneDrive.exe > NUL 2>&1
timeout 5
echo Uninstalling OneDrive.
echo.
if exist %x64% (
%x64% /uninstall
) else (
%x86% /uninstall
)
timeout 5
echo Removing OneDrive leftovers.
echo.
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
rd "%SYSTEMDRIVE%\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.
echo.
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
color 0a
echo You must restart your computer to finish OneDrive uninstallation, have a nice day.
pause
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
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.XboxApp | Remove-AppxPackage
Get-AppxPackage -AllUsers -Name Microsoft.ZuneMusic | Remove-AppxPackage
Get-AppxPackage -AllUsers -Name Microsoft.ZuneVideo | 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
# Telemetry removal
sc delete DiagTrack
sc delete dmwappushservice
echo "" > C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.