SHARE
TWEET

Windows Internet ON/OFF

TairikuOkami Dec 14th, 2018 267 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!!
  2.  
  3. netsh advfirewall set PublicProfile firewallpolicy blockinboundalways,allowoutbound
  4.  
  5. sc config Winmgmt start= auto
  6. sc config netprofm start= auto
  7. sc config Wcmsvc start= auto
  8.  
  9. net start Winmgmt
  10. net start Wcmsvc
  11. net start netprofm
  12.  
  13. rem Disable adapter with index number 0-5 (most likely all), equals to ipconfig /release
  14. wmic path win32_networkadapter where index=0 call disable
  15. wmic path win32_networkadapter where index=1 call disable
  16. wmic path win32_networkadapter where index=2 call disable
  17. wmic path win32_networkadapter where index=3 call disable
  18. wmic path win32_networkadapter where index=4 call disable
  19. wmic path win32_networkadapter where index=5 call disable
  20.  
  21. timeout 5
  22.  
  23. rem Enable adapter with index number 0-5 (most likely all), equals to ipconfig /renew
  24. wmic path win32_networkadapter where index=0 call enable
  25. wmic path win32_networkadapter where index=1 call enable
  26. wmic path win32_networkadapter where index=2 call enable
  27. wmic path win32_networkadapter where index=3 call enable
  28. wmic path win32_networkadapter where index=4 call enable
  29. wmic path win32_networkadapter where index=5 call enable
  30.  
  31. timeout /t -1
  32.  
  33. sc config netprofm start= disabled
  34. sc config Wcmsvc start= disabled
  35. sc config Winmgmt start= disabled
  36.  
  37. net stop Wcmsvc /y
  38. net stop netprofm /y
  39. net stop Winmgmt /y
  40.  
  41. netsh advfirewall set PublicProfile firewallpolicy blockinboundalways,blockoutbound
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top