J
James
Is there a way to enable/disable a NIC on a remote computer from the command
line?
line?
HiFeng said: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.