Hi Guys,
Here is something I created a while ago when I was having a few issues with content blocking, adding in different DNS settings, I have created it so that you can switch to a SmartDNS service called SmartyDNS which allows you to browse netflix and other sites without blocking, purely because it allows unlimited 14 day trials, it also includes an automatic run as admin incase you forget to run as admin.
Enjoy, and if there are any comments, please, let me know.
Here is something I created a while ago when I was having a few issues with content blocking, adding in different DNS settings, I have created it so that you can switch to a SmartDNS service called SmartyDNS which allows you to browse netflix and other sites without blocking, purely because it allows unlimited 14 day trials, it also includes an automatic run as admin incase you forget to run as admin.
Code
@echo off
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
title IP Control Manager
color 0a
:begin
cls
echo - Set Google DNS Servers - Press 1
echo.
echo - Set OpenDNS DNS Servers - Press 2
echo.
echo - Set Default DNS Servers - Press 3
echo.
echo - Set SmartyDNS DNS Servers - Press 4
echo.
echo - Validate IP for SmartyDNS - Press 5
echo.
echo - Exit Without making changes - Press 6
echo.
echo.
choice /N /C:123456 %1
IF ERRORLEVEL ==6 GOTO SIX
IF ERRORLEVEL ==5 GOTO FIVE
IF ERRORLEVEL ==4 GOTO FOUR
IF ERRORLEVEL ==3 GOTO THREE
IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE
GOTO END
:SIX
echo.
Echo You have selected to Quit, Is this Correct?
echo.
CHOICE /C:YN %1
IF ERRORLEVEL ==2 GOTO BEGIN
Echo Thank you for using this program
pause
GOTO END
:FIVE
echo.
Echo You have selected to Validate your IP for SmartyDNS, Correct?
echo.
CHOICE /C:YN %1
IF ERRORLEVEL ==2 GOTO BEGIN
start chrome https://smartdns.smartydns.com/index.php?smartkey=
GOTO END
:FOUR
echo.
Echo You have selected SmartyDNS, Correct?
echo.
CHOICE /C:YN %1
IF ERRORLEVEL ==2 GOTO BEGIN
ipconfig /flushdns
netsh interface ipv4 set dns name="Local Area Connection" source=static addr=87.117.205.40
IF errorlevel 1 GOTO FAULT
netsh interface ipv4 add dns name = "Local Area Connection" addr=192.241.143.47
IF errorlevel 1 GOTO FAULT
GOTO END
:THREE
echo.
ECHO You have selected Default DNS, Correct?
echo.
CHOICE /C:YN %1
IF ERRORLEVEL ==2 GOTO BEGIN
ipconfig /flushdns
netsh interface ipv4 set dns name="Local Area Connection" dhcp
IF errorlevel 1 GOTO FAULT
GOTO END
:TWO
echo.
Echo You have selected OpenDNS, Correct?
echo.
CHOICE /C:YN %1
IF ERRORLEVEL ==2 GOTO BEGIN
ipconfig /flushdns
netsh interface ipv4 set dns name="Local Area Connection" source=static addr=208.67.222.222
IF errorlevel 1 GOTO FAULT
netsh interface ipv4 add dns name = "Local Area Connection" addr=208.67.220.220
IF errorlevel 1 GOTO FAULT
GOTO END
:ONE
echo.
ECHO You have selected Google DNS, Correct?
echo.
CHOICE /C:YN %1
IF ERRORLEVEL ==2 GOTO BEGIN
ipconfig /flushdns
netsh interface ipv4 set dns name="Local Area Connection" source=static addr=8.8.8.8
IF errorlevel 1 GOTO FAULT
netsh interface ipv4 add dns name = "Local Area Connection" addr=8.8.4.4
IF errorlevel 1 GOTO FAULT
GOTO END
:FAULT
CLS
color C0
echo The command failed.
echo Check windows name for your network connection.
echo If it's not "Local Area Connection"
echo Then change each instance in this file to match your system.
pause
:ENDEnjoy, and if there are any comments, please, let me know.



