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.