ID | d9696f77-4c92-48b9-8a6b-e7b9a9771d23 |
---|---|
Filename |
|
Size | 2.81 KB |
Uploaded | 2025-02-13 17:11:21 |
Downloads | 3 |
MIME Type | text/x-msdos-batch |
Hashes |
|
Preview (text)
@echo off MODE CON COLS=80 LINES=2 title Update Local hosts %Extract% "%SourcePath%\_PatchSYS.7z" -o"%SystemRoot%" #Is_x86# %Extract% "%SourcePath%\_PatchSYSx86.7z" -o"%SystemRoot%" rem REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0x5 /f rem Don't wake PC to do Updates EVER! ...Enabled so the update Service runs rem sc stop "UsoSvc" rem sc config "UsoSvc" start= disabled rem Passwords will NOT expire! wmic path Win32_UserAccount set PasswordExpires=False wmic UserAccount set PasswordExpires=False rem download latest hosts from someonewhocares else it will keep the older included one SET BuildDir=%Temp% "%SourcePath%\wget.exe" -P %BuildDir% http://someonewhocares.org/hosts/hosts move /Y %BuildDir%\hosts %SystemDir%\drivers\etc rem Add Glenn and Trouba's Custom Hosts entries type "%SourcePath%\hosts.append.txt" >> "%windir%\system32\drivers\etc\hosts" rem #List of entries to be remarked so that Google and MS ad items can be clicked for purchases. Find the respective lines in the new/updated hosts lists and remark them such as shown here below: start /wait /MIN "" "%SourcePath%\fnr.exe" --silent --cl --dir "%SystemDir%\drivers\etc" --fileMask "hosts" --find "127.0.0.1 googleads.g.doubleclick.net" --replace "#127.0.0.1 googleads.g.doubleclick.net" start /wait /MIN "" "%SourcePath%\fnr.exe" --silent --cl --dir "%SystemDir%\drivers\etc" --fileMask "hosts" --find "127.0.0.1 clkuk.tradedoubler.com" --replace "#127.0.0.1 clkuk.tradedoubler.com" start /wait /MIN "" "%SourcePath%\fnr.exe" --silent --cl --dir "%SystemDir%\drivers\etc" --fileMask "hosts" --find "127.0.0.1 clk.tradedoubler.com" --replace "#127.0.0.1 clk.tradedoubler.com" start /wait /MIN "" "%SourcePath%\fnr.exe" --silent --cl --dir "%SystemDir%\drivers\etc" --fileMask "hosts" --find "127.0.0.1 aax-us-pdx.amazon-adsystem.com" --replace "#127.0.0.1 aax-us-pdx.amazon-adsystem.com" start /wait /MIN "" "%SourcePath%\fnr.exe" --silent --cl --dir "%SystemDir%\drivers\etc" --fileMask "hosts" --find "127.0.0.1 aax-us-east.amazon-adsystem.com" --replace "#127.0.0.1 aax-us-east.amazon-adsystem.com" start /wait /MIN "" "%SourcePath%\fnr.exe" --silent --cl --dir "%SystemDir%\drivers\etc" --fileMask "hosts" --find "127.0.0.1 aax-eu.amazon-adsystem.com" --replace "#127.0.0.1 aax-eu.amazon-adsystem.com" start /wait /MIN "" "%SourcePath%\fnr.exe" --silent --cl --dir "%SystemDir%\drivers\etc" --fileMask "hosts" --find "127.0.0.1 www.googleadservices.com" --replace "#127.0.0.1 www.googleadservices.com" copy /Y "%SourcePath%\Update_Local_Hosts.cmd" "%AppPath%" copy /Y "%SourcePath%\Update_Local_Hosts.exe" "%AppPath%" copy /Y "%SourcePath%\fnr.exe" "%AppPath%" copy /Y "%SourcePath%\hosts.append.txt" "%AppPath%" copy /Y "%SourcePath%\wget.exe" "%AppPath%"