Listing device driver files with WMI... Urgente...

Discussion in 'Scripting' started by Felipe, Oct 15, 2004.

  1. Felipe

    Felipe Guest

    hi dears!

    I need some script using WMI that shows me the files for the device drivers
    installed on my PC. Does anybody know hou could I do that?

    I´ve already tried execute queries against classes as
    Win32_CIMLogicalDeviceCIMDataFile, Win32_PNPEntity and CIM_Dependency, but it
    didn´t work fine...

    This script needs to run on Win9X(ou later) and Windows NT 4/2000(ou later).

    Thank you dears!
     
    Felipe, Oct 15, 2004
    #1
    1. Advertisements


  2. Not sure about 9x/NT support or exactly what you are after, but this WMI
    query gives me lots of results on W2K prop sp4...

    select name,description,pathname from win32_systemdriver where
    pathname!=null
     
    Michael Harris \(MVP\), Oct 16, 2004
    #2
    1. Advertisements

  3. Felipe

    Felipe Guest

    Dear! thank you very much! It worked fine on windows pro SP4, too(I´ve not
    tested it on W9X yet).

    But some device drivers, have another files like .sys and .dll, sometimes,
    wich are not retrievied with this script("select name,description,pathname
    from win32_systemdriver where pathname!=null").

    Do you know how to return these other kind of files(.sys, .inf) of a device
    driver? Also, there´s a way to filter devices drivers to return only de
    drivers for a device I wish(such as, filter by the PNPDevice, or what)?

    Thank you very much, again, dear!

    Felipe From Brazil.
     
    Felipe, Oct 18, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.