Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > XP Hardware
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How enable network adapter in script?

XP Hardware


Reply
 
Thread Tools Search this Thread
  #1  
Old 01-02-2008
Member
 
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.

Reply With Quote
  #2  
Old 01-02-2008
Member
 
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
Reply With Quote
  #3  
Old 02-02-2008
Member
 
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
Reply With Quote
  #4  
Old 06-05-2012
Member
 
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
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > XP Hardware
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 06:51 AM.