Re: enable/disable a NIC remotely
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 07/09/04
- Next message: Jaco: "Renaming a share."
- Previous message: Pegasus \(MVP\): "Re: Scheduling problems"
- In reply to: Feng Mao: "RE: enable/disable a NIC remotely"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 09 Jul 2004 11:45:12 +0200
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/consulting/remoteprocess/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/community/scriptcenter/default.mspx
- Next message: Jaco: "Renaming a share."
- Previous message: Pegasus \(MVP\): "Re: Scheduling problems"
- In reply to: Feng Mao: "RE: enable/disable a NIC remotely"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|