Results 1 to 4 of 4

Thread: How enable network adapter in script?

  1. #1
    Join Date
    Oct 2004
    Posts
    76

    How enable network adapter in script?

    I have a Windows XP Pro SP2 computer. It is on lan. There are some 4 more computers. I am looking for some script or batch file through which I can enable or disable network adapter. I am trying to do that through netsh.exe file. But that is not working. I am getting a fail message on the screen. I am not aware about the actual syntax used in that. Can anyone guide me on this.

  2. #2
    Join Date
    Sep 2004
    Posts
    151
    Got a good article on technet. This is a kind of complete guide that offers you a detailed script and description how to create a script that can enable or disable a lan adapter. Other than this if you find this very complicated then you can search on web for batch file or ready to use script. There will be minor changes that you will need to do and then the script works well.

    How Can I Enable or Disable My Network Adapter

  3. #3
    Join Date
    Sep 2004
    Posts
    125
    Here is a script that can do what you are talking about. You can simply copy paste the script mentioned here and it works well. I had tested this on Windows Server. It is really not complicate to initiate the script. I had configured the same on schedule task. As per the task assigned the network adapter is active for some hours only and then it is disabled automatically.

    Enable Disable Network Adapter

  4. #4
    Join Date
    May 2012
    Posts
    1
    Hi there I had the same issue and after lots of screaming I discovered that this command DOESN'T work in WIN XP. You could use a VB script though which is much bulkier that a simple dos cmd.

    By that i meant the NETSH command doesnt work in WIN XP

Similar Threads

  1. Powershell Script to Enable/Disable Network Connection
    By windows_user in forum Software Development
    Replies: 8
    Last Post: 27-04-2012, 09:35 PM
  2. Re-enable the script for website in opera.
    By Holly Dayin in forum Technology & Internet
    Replies: 2
    Last Post: 24-02-2012, 07:54 PM
  3. Batch file to disable or enable network adapter
    By ToniYap in forum Networking & Security
    Replies: 2
    Last Post: 25-06-2010, 12:38 AM
  4. Script to repair/reset network adapter
    By Khongordzol in forum Windows Vista Network
    Replies: 3
    Last Post: 27-04-2010, 01:33 PM
  5. How do I enable DHCP on my network adapter?
    By Nitnam in forum Windows Vista Network
    Replies: 2
    Last Post: 23-02-2008, 03:29 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,674,105.36603 seconds with 17 queries