Is there a way to reset all network adapters in Windows XP?

Posted on 2009-12-19
Last Modified: 2012-05-08
I need to find a way to reset all physical network connections on a Windows XP System. This needs script or executable will be run at logoff to diconnect it the connection from a cisco CAM server.

I found the WMI script below but I need a way to reset all of the devices.

arrComputers = Array(")

For Each strComputer In arrComputers


   WScript.Echo "=========================================="

   WScript.Echo "Computer: " & strComputer

   WScript.Echo "=========================================="

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 

' Obtain an instance of the the class 

' using a key property value.

Set objShare = objWMIService.Get("Win32_NetworkAdapter.ReplaceKeyProperty=ReplacePropertyValue")

' no InParameters to define

' Execute the method and obtain the return status.

' The OutParameters object in objOutParams

' is created by the provider.

Set objOutParams = objWMIService.ExecMethod("Win32_NetworkAdapter.ReplaceKeyProperty=ReplacePropertyValue", "Reset")

' List OutParams

Wscript.Echo "Out Parameters: "

Wscript.echo "ReturnValue: " & objOutParams.ReturnValue


Open in new window

Question by:kman28_9999
    LVL 51

    Expert Comment

    Dim oShell
    Set oShell = WScript.CreateObject ("") "ipconfig release /all"
    rem "ipconfig renew /all"
    Set oShell = Nothing
    LVL 1

    Author Comment

    The physical adapter will need to be disconnected. Release renew will not work with the cisco NAC.
    LVL 4

    Accepted Solution

    Microsoft's DevCon command-line utitlity should do the job for you:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
    The viewer will learn how to count occurrences of each item in an array.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now