I think I found something.
it has nothing to do with wmi (I bet nothing good has come out of it) but with it you can do the job.
try this:
Code:

$enum = 0
do
$key = enumkey("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\UNKNOWN",$enum)
run "Rundll32.exe devmgr.dll DeviceProperties_RunDLL /DeviceID Root\UNKNOWN\"+$key
$enum = $enum + 1
until "" = $key


dx21 seemed to be the right resource to get this far:
http://www.dx21.com/SCRIPTING/RUNDLL32/VIEWITEM.ASP?OID=203&CMD=P-A

now, what one needs to do is activate the driver tab and press the remove button.
this can be done with the good old sendkeys.


Edited by Jooel (2006-02-08 02:31 PM)
_________________________
!

download KiXnet