How To Disable/Enable Lan Connection
Hi All,
Do u have Any Idea How to Disable/Enable LAN Connection ThroughProgrammatically or Using Command Prompt.... in Windows.....
Windows Forum
Hi All,
Do u have Any Idea How to Disable/Enable LAN Connection ThroughProgrammatically or Using Command Prompt.... in Windows.....
by ykmraju
Poster rated this answer.
by ykmraju
Hi Hutchison,
Already I tried with Netsh command but it is not working.....
That Command is
******netsh interface set interface name="LAN1" admin=ENABLED *********
Hope to hear more from you!
Regards
YKMRaju
by blackcurrant
Hi
Another solution may be to create a new hardware profile which does not include the network card. Using this method requires the user to choose between profile 1 (current) or profile 2 (without the card), when the machine is booted.
by ykmraju
Poster rated this answer.
Hai BlackCurrant,
I didn't get it , Need more Explanation plz....
1. Open System Control panel
2. click Hardware then Hardware profiles
3. By default you will have one Profile
4. Click Copy and enter new profile name
5. Reboot and select your new profile
6. When Windows loads, you can disable network cards in this profile. You can also disable Network Connections as well you don`t need.
7. Now you can select which profile to use when you boot up.
by power_ravi
To enable:
$shell = New-Object -comObject Shell.Application((($shell.NameSpace(0x31) | where {$_.Title -eq "Network Connections"}).Items() | where {$_.Name -like "Local*"}).Verbs() | where {$_.Name -eq "En&able"}).DoIt()
To Disable:
$shell = New-Object -comObject Shell.Application((($shell.NameSpace(0x31) | where {$_.Title -eq "Network Connections"}).Items() | where {$_.Name -like "Local*"}).Verbs() | where {$_.Name -eq "Disa&ble"}).DoIt()
This discussion is closed to new replies.
Sort by Trending