Skip to content

Instantly share code, notes, and snippets.

@anhar
Last active September 6, 2015 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anhar/8f8f6a44b5e1d0831161 to your computer and use it in GitHub Desktop.
Save anhar/8f8f6a44b5e1d0831161 to your computer and use it in GitHub Desktop.
Cleaning up a Windows 7/8/10 install as good as possible

README

  1. Download the ZIP folder

  2. Extract it to somewhere

  3. Place the "hosts" file in the following directory:

    C:\Windows\System32\drivers\etc\

  4. Run the "windows_privacy_fixes.bat"

# File should be placed in the following directory: C:\Windows\System32\drivers\etc\
# Skype ads blacklist
127.0.0.1 live.rads.msn.com
127.0.0.1 ads1.msn.com
127.0.0.1 static.2mdn.net
127.0.0.1 g.msn.com
127.0.0.1 a.ads2.msads.net
127.0.0.1 b.ads2.msads.net
127.0.0.1 ad.doubleclick.net
127.0.0.1 ac3.msn.com
127.0.0.1 rad.msn.com
127.0.0.1 msntest.serving-sys.com
127.0.0.1 bs.serving-sys.com
127.0.0.1 flex.msn.com
127.0.0.1 ec.atdmt.com
127.0.0.1 cdn.atdmt.com
127.0.0.1 db3aqu.atdmt.com
127.0.0.1 cds26.ams9.msecn.net
127.0.0.1 sO.2mdn.net
127.0.0.1 aka-cdn-ns.adtech.de
127.0.0.1 secure.flashtalking.com
127.0.0.1 adnexus.net
127.0.0.1 adnxs.com
127.0.0.1 *.rad.msn.com
127.0.0.1 *.msads.net
127.0.0.1 *.msecn.net
127.0.0.1 mssplus.mcafee.com
# Windows tracking BS
127.0.0.1 vortex-win.data.microsoft.com
127.0.0.1 settings-win.data.microsoft.com
@echo off
:: BatchGotAdmin
:: Taken from: https://sites.google.com/site/eneerge/scripts/batchgotadmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
echo Removing privacy violation packages from Microsoft...
echo ^See this reddit thread for more information: && echo ^https://www.reddit.com/r/technology/comments/3iaqti/remove_these_windows_78_kb_updates_to_stop/
echo.
echo.
wusa /uninstall /kb:3075249 /quiet /norestart
echo ^Successfully uninstalled kb:3075249. && echo ^See this URL for more information: https://support.microsoft.com/en-us/kb/3075249
echo.
wusa /uninstall /kb:3080149 /quiet /norestart
echo ^Successfully uninstalled kb:3080149. && echo ^See this URL for more information: https://support.microsoft.com/en-us/kb/3080149
echo.
wusa /uninstall /kb3068708 /quiet /norestart
echo ^Successfully uninstalled kb:3068708. && echo ^See this URL for more information: https://support.microsoft.com/en-us/kb/3068708
echo.
wusa /uninstall /kb:2976978 /quiet /norestart
echo ^Successfully uninstalled kb:2976978. && echo ^See this URL for more information: https://support.microsoft.com/en-us/kb/2976978
echo.
wusa /uninstall /kb:3021917 /quiet /norestart
echo ^Successfully uninstalled kb:3021917. && echo ^See this URL for more information: https://support.microsoft.com/en-us/kb/3021917
echo.
wusa /uninstall /kb:2952664 /quiet /norestart
echo ^Successfully uninstalled kb:2952664. && echo ^See this URL for more information: https://support.microsoft.com/en-us/kb/2952664
echo.
echo The uninstall process has been completed, press any key to close this window.
pause >null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment