RE: enable/disable a NIC remotely

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Feng Mao (fengmao_at_online.microsoft.com)
Date: 07/09/04

  • Next message: anonymous_at_discussions.microsoft.com: "Re: 56k modem"
    Date: Fri, 09 Jul 2004 07:56:27 GMT
    
    

    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.


  • Next message: anonymous_at_discussions.microsoft.com: "Re: 56k modem"

    Relevant Pages

    • Re: enable/disable a NIC remotely
      ... This utility is named DEVCON. ... DevCon Command Line Utility Alternative to Device Manager ... > when you try to disable the device on the remote computer. ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
      (microsoft.public.win2000.general)
    • Re: BSOD/Windows see new device
      ... Are you sure the command ran properly? ... Did you download the correct devcon version? ... If you didn't put the \* switch in there the list will be empty. ... Place the Devcon utility in your System32 folder. ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: Re: remothly change IP configuration with netsh
      ... the issue is that NETSH command it haves the option to ... changes are applied to the remote computer not the local ... using the set machine global Netsh command. ...
      (microsoft.public.win2000.cmdprompt.admin)
    • Re: Force mount with HPUX 11.00 when Block Read Error
      ... posting I was able to mount the volume using '-F hfs -f' as you said. ... I just wonder why I couldn't find your forum response using google, ... > but that does not seem to work anymore. ... >> command usage help of the mount command. ...
      (comp.sys.hp.hpux)
    • Re: subinacl to remove unknown sids
      ... If 2008 run the command prompt, even with the administrator account, with "run as". ... Meinolf Weber ... Disclaimer: This posting is provided "AS IS" with no warranties, ...
      (microsoft.public.windows.server.active_directory)