PC Review


Reply
Thread Tools Rate Thread

command to enable\disable network card

 
 
Elton Seng Yan Thung
Guest
Posts: n/a
 
      19th Apr 2004
Dear all,
We have just installed wireless AP in our meeting rooms. The objective
is to allow notebook users to using wireless network during the meeting.
Most of the notebook comes with 2 NIC (wired and wireless ) today. Our
policy is to have a NIC work at the same time only. If the user is on his
desk, he\she should use wired nic only. If in meeting room, the wired NIC
should be disabled. It is to avoid unnecessary routing and roaming problem.
In order to simplify the process for our users, we are trying to create
2 shortcut in their desktop to
1) Enable wired and disable wireless when they are in their desk
2) Enable wireless and disable wired when they are in meeting.
I been searching the net and don't find a command to do so in script or
batch file. I heard netsh command is able to accomplish the task. But I just
not able to find the syntax for the task. For the reason, your advise and
help is needed.

thanks



 
Reply With Quote
 
 
 
 
Shilpa Sinha [MSFT]
Guest
Posts: n/a
 
      19th Apr 2004
Hi

Hope this helps,

If you want to disable the interface to prevent traffic from being passed
by the network adapter, you can use the Netshell tool to set a different IP
address (such as a private IP address) or default gateway (which in effect,
disables the network adapter). The following example shows the syntax for
this configuration:

netshell interface ip set address interface_name static ip_address
subnet_mask default_gateway metric

For additional information about the Netshell tool, click the article
number below to view the article in the Microsoft Knowledge Base:
242468 - How to Use the Netsh.exe Tool and Command-Line Switches

Reference links:

http://support.microsoft.com/default...b;EN-US;242468
http://support.microsoft.com/default...b;en-us;262265
For details about Using netsh command:
http://www.microsoft.com/windowsxp/h...fault.asp?url=
/WINDOWSXP/home/using/productdoc/en/netsh.asp


Shilpa Sinha
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
=?Utf-8?B?bW9zcXVpdG9faGlwcHk=?=
Guest
Posts: n/a
 
      25th Jun 2004
Why that way, i should be able to use "netsh interface set interface name={IFName} admin=enabled connect=disconnected"? to do that, it sound more natural to me, but it doesn't work, could any body explain that to me.


"Elton Seng Yan Thung" wrote:

> Dear all,
> We have just installed wireless AP in our meeting rooms. The objective
> is to allow notebook users to using wireless network during the meeting.
> Most of the notebook comes with 2 NIC (wired and wireless ) today. Our
> policy is to have a NIC work at the same time only. If the user is on his
> desk, he\she should use wired nic only. If in meeting room, the wired NIC
> should be disabled. It is to avoid unnecessary routing and roaming problem.
> In order to simplify the process for our users, we are trying to create
> 2 shortcut in their desktop to
> 1) Enable wired and disable wireless when they are in their desk
> 2) Enable wireless and disable wired when they are in meeting.
> I been searching the net and don't find a command to do so in script or
> batch file. I heard netsh command is able to accomplish the task. But I just
> not able to find the syntax for the task. For the reason, your advise and
> help is needed.
>
> thanks
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/disable Network components from the command line =?Utf-8?B?VG9t?= Windows XP Networking 1 7th Mar 2006 01:10 AM
disable/enable a network card using c# knopper Microsoft C# .NET 1 15th Apr 2005 01:51 AM
Have to disable and enable network card to make it work on reboot =?Utf-8?B?MThTY29vYno=?= Windows XP Networking 2 1st Feb 2005 03:09 AM
Enable & Disable Network Connections Via Command Line? Teffy Windows XP Networking 5 1st Sep 2004 09:59 PM
Enable/Disable Network Card =?Utf-8?B?Rmls?= Microsoft Dot NET 1 10th Feb 2004 02:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 PM.