Sign in to follow this  
Followers 0
Wooltown

Removing Network cards fom Device manager

10 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

Look at the command "netsh"

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Via registry it's possible but you have to spend 2-3 hours intensive work.

devsh, no doesn't work

Is it a reading or writing mistake?

Iznogoud wrote

Look at the command "netsh"

not

devsh

Did you try 'netsh'?

Share this post


Link to post
Share on other sites

netsh it is, a typo error

/Sven

Share this post


Link to post
Share on other sites

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

How 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 *

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0