How to enable / disable local area connection via CMD?
1. Check interface list
netsh interface show interface
2. enable
netsh interface set interface name="Local Area Connection" admin=DISABLED
3. disable
netsh interface set interface name="Local Area Connection" admin=DISABLED
4. make bat file via notepad
write the command you want above
save the file as "filename.bat" in ANSI encoding type
5. make shortcut the bat file
6. set always run in administrative mode
Reference
https://www.windows-commandline.com/how-to-disable-lan-connection-from-cmd/
How to Disable LAN connection from CMD
How to Disable LAN connection from CMD by Srini If you want to disable LAN connection from Windows command prompt, you can run the following steps. Open elevated command promptRun the below commandnetsh interface set interface name="Local Area Connection"
www.windows-commandline.com
로컬 영역 연결 사용 / 사용안함 (배치 파일)
인터넷을 하다 잠시 인터넷을 끊고 싶을 때 쓰면 괜찮은 파일입니다. 컴퓨터가 조금 옛날꺼라 절전모드가 ...
blog.naver.com