I understand the command to show the Windows XP firewall status is:
netsh firewall show opmode
Which outputs:
To disable firewall type:
netsh firewall set opmode mode=disable profile=all
Which outputs:
But I cannot find the command to disable the Local Area Connection.
How can I do this?
You need to use the interface
option of netsh
.
To disable:
netsh interface set interface "Local Area Connection" admin=disable
To enable:
netsh interface set interface "Local Area Connection" admin=enable
Notes:
Local Area Connection
with the interface names of your adapter.netsh interface show interface
to get the interface name.