PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

enable/disable a NIC remotely

 
 
James
Guest
Posts: n/a
 
      8th Jul 2004
Is there a way to enable/disable a NIC on a remote computer from the command
line?


 
Reply With Quote
 
 
 
 
Feng Mao
Guest
Posts: n/a
 
      9th Jul 2004
Hi James,

Thank you for posting!

James, I can find the command utility to help you to disable or enable
device on local computer. This utility is named DEVCON. For additional
information about this utility, click the below hyperlink to view the
article in Microsoft knowledge base:

http://support.microsoft.com/?id=311272
311272 FILE: DevCon Command Line Utility Alternative to Device Manager

Although this utility has the option /m:\\machine name, it does not work
when you try to disable the device on the remote computer.

NETSH command can call RPC to remote change the network configuration on
the remote computer. However, the command

[Remote Computer Name] netsh interface> set interface [name = ] IfName [
[admin = ] ENABLED|DISABLED [connect = ] CONNECTED|DISCONNECTED [newname =
] NewName ]

can only be used to disable Non-LAN interface.

So, in my opinion, you may copy DEVCON to the remote computer, and run it
in its Terminal Sessions.

The above is the information I can found. It is possible there are some
third party utilities can help you to implement this. I can find the VC++
source code to remote disable/enable a network interface card in Internet.

Have a nice day!

Thanks & Regards,

Feng Mao [MSFT], MCSE
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security

=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
      9th Jul 2004
Feng Mao wrote:

> Hi James,
>
> Thank you for posting!
>
> James, I can find the command utility to help you to disable or enable
> device on local computer. This utility is named DEVCON. For additional
> information about this utility, click the below hyperlink to view the
> article in Microsoft knowledge base:
>
> http://support.microsoft.com/?id=311272
> 311272 FILE: DevCon Command Line Utility Alternative to Device Manager
>
> Although this utility has the option /m:\\machine name, it does not work
> when you try to disable the device on the remote computer.
>
> NETSH command can call RPC to remote change the network configuration on
> the remote computer. However, the command
>
> [Remote Computer Name] netsh interface> set interface [name = ] IfName [
> [admin = ] ENABLED|DISABLED [connect = ] CONNECTED|DISCONNECTED [newname =
> ] NewName ]
>
> can only be used to disable Non-LAN interface.
>
> So, in my opinion, you may copy DEVCON to the remote computer, and run it
> in its Terminal Sessions.

Hi

To run Devcon.exe remotely, you might be able to use PsExec.exe in
the free PsTools suite, found at
http://www.sysinternals.com

PsExec can even automatically copy a file (e.g. Devcon.exe) over
to the remote computer before it starts it.


Another freeware program with similar merits to PsExec is Beyondexec.
http://www.beyondlogic.org/consultin...BeyondExec.htm

Beyondexec also have multiple computer functionality.


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/com...r/default.mspx
 
Reply With Quote
 
New Member
Join Date: Dec 2011
Posts: 1
 
      6th Dec 2011
I found a program that does what you are looking to do, although it is GUI based on not command line driven. It's called NIC Padlock.

I've played around with it and it works as advertised. It also has some other nice features:

- Remotely disables all network adapters
- Choose to display a message to the user when NIC’s are disabled
- Remotely enables all network adapters
- Re-enable the adapters that were disabled after a configurable time period
- Retrieves a remote computer’s list of auto-run programs

 
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
NIC Bonding (NIC-B) vs NIC Teaming (NIC-T) Charles L. Phillips Windows XP Basics 0 7th Jan 2008 09:45 PM
Resitrcting File and Printer Sharing to one NIC on a multi-NIC machine Steve Windows XP Help 2 4th Oct 2004 02:53 PM
How to install SNMP remotely automatically or remotely Dave Microsoft Windows 2000 Deployment 0 27th Aug 2004 02:50 PM
Re: changing nic speed/duplex remotely Runlong Windows XP Security 0 21st May 2004 05:39 PM
Re: Remotely Changing NIC link speed Bill Sanderson Windows XP Work Remotely 0 6th May 2004 12:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:13 AM.