Wooltown Posted July 6, 2006 Share Posted July 6, 2006 We have a test environment where many virtual network cards is added. Does anyone now how to remove them using AutoIT and can give a script example ? For example remove all network Cards beginning with "Virtual". /Sven Link to comment Share on other sites More sharing options...
Briegel Posted July 6, 2006 Share Posted July 6, 2006 Sorry I haven't any virtual nic. I would try following by using 'regshot.exe' (freeware): 1. Make a first snapshot of registry 2. Delete a virtual nic manually 3. Make a second snapshot of registry 4. Compare the snapshots and find out the signifiance regkeys 5. Have a look at AutoIt helpfile - RegEnumKey () - RegEnumVal () - RegDelete () - StringInStr () Hope this can help a little bit. Link to comment Share on other sites More sharing options...
CyberSlug Posted July 6, 2006 Share Posted July 6, 2006 DevCon with examples: http://support.microsoft.com/?kbid=311272 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Iznogoud Posted July 6, 2006 Share Posted July 6, 2006 Look at the command "netsh" Link to comment Share on other sites More sharing options...
Wooltown Posted July 6, 2006 Author Share Posted July 6, 2006 Tried all your suggestions, but going via registry for network cards is very complex, I remove other devices that way, but network card is too hard to solve. Devcon works fine to list the adapters, but if they are not connected they are hidden, and with devcon, can unfortunatelly not remove hidden devices. Devcon is available in source code if you buy MS DDK. devsh, no doesn't work. /Sven Link to comment Share on other sites More sharing options...
Briegel Posted July 6, 2006 Share Posted July 6, 2006 Via registry it's possible but you have to spend 2-3 hours intensive work.devsh, no doesn't workIs it a reading or writing mistake?Iznogoud wrote Look at the command "netsh"notdevshDid you try 'netsh'? Link to comment Share on other sites More sharing options...
Wooltown Posted July 7, 2006 Author Share Posted July 7, 2006 netsh it is, a typo error /Sven Link to comment Share on other sites More sharing options...
/dev/null Posted July 7, 2006 Share Posted July 7, 2006 We have a test environment where many virtual network cards is added.Does anyone now how to remove them using AutoIT and can give a script example ?For example remove all network Cards beginning with "Virtual"./SvenHow do you add them? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Wooltown Posted July 10, 2006 Author Share Posted July 10, 2006 We connect mobile telephones, and they add network cards. The problem is that if too many are added, the registry gets too big and Windows won't start, therefore I clean the registry from resources added by the mobile phones, all resources but Network cards are easy to remove, Network Cards in the registry is very complex. /Sven Link to comment Share on other sites More sharing options...
evilertoaster Posted July 10, 2006 Share Posted July 10, 2006 Microsoft has an API for removing decive drivers (which remove the device i believe)http://www.microsoft.com/whdc/driver/install/DIFxAPI.mspxIt might work for what your doing... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now