Advertisement
npocmaka

disableIPv6.bat

Jun 18th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. :: disables IPv6 on all adapters
  3. :: needs nvspbind - http://archive.msdn.microsoft.com/nvspbind
  4. :: by Vasil "npocmaka" Arnaudov
  5. set PATH=%PATH%;.
  6. for %%# in (nvspbind.exe) do  echo %%~dp$PATH:# | find ":" >nul 2>&1 || ( echo NVSPBIND not found & exit /b 1 )
  7. for /f eol^=^" %%A in ('nvspbind ^| find "{"') do nvspbind %%A | find /I "enabled:  ms_tcpip6" >nul 2>&1 && nvspbind -d %%A ms_tcpip6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement