Jump to content

WMI hardware detection


gadget

Recommended Posts

Hi,

I am using pe2004 with wmi and vb6 to interrogate hardware devices. All is fine except detection of floppy diskkete drive or cd\dvd drive.

Everything else reports fine (memory, processors etc). Anyone else seen this?

Link to comment
Share on other sites


As I understand it there is just a specific part of the entire subset of properties of WMI included with the support for WinPE. In my case I was trying to investigate / ask dynamically through WMI which drive letter the CD unite had... from a WinXP box I choose a property that seemed to match the question. When performing it from WinPE it returned it as none existing..

So I choose another property to figure out which drive letter it was.. so I based it on that not all properties were to be found in WinPE WMI when comparing them to a full blown XP box.

Then again, same .dll and .ocx files that u register so I am not sure...

Good luck!

Link to comment
Share on other sites

Pants!

Just run some manual wmi scripts and it there is a lorra stuff missing, even querying the pnp vendor id's only return the ide controller and the network card.

3 questions:

Any way of adding the full wmi support?

Is Winpe2005 any better at wmi reporting?

Do I need to locate 3rd party software to query the system?

I would hate to use a 3rd party vendor - trying to get away from this at the moment and I can't possibly use any kind of Barts PE due to licensing.

The main items i need to query above what is reported on is floppy diskette, cd\dvd rom, video and sound cards.

Link to comment
Share on other sites

Is it simply the existens of a cd drive you need?

in that case this might do

sub getcddrive()

Dim ObjDrives

Dim ObjDrive

Set ObjDrives = fso.Drives

For Each ObjDrive in ObjDrives

If ObjDrive.DriveType = 4 Then

cddrive= fso.GetDriveName(ObjDrive)

exit sub

End If

Next

end sub

Link to comment
Share on other sites

Is it simply the existens of a cd drive you need?

in that case this might do

sub getcddrive()

  Dim ObjDrives

  Dim ObjDrive

  Set ObjDrives = fso.Drives

  For Each ObjDrive in ObjDrives

If ObjDrive.DriveType = 4 Then

  cddrive= fso.GetDriveName(ObjDrive)

  exit sub

End If

  Next

end sub

Wish it was that simple. I need details on pci devices and port information which wmi reports on so beatifully outside of PE. Thanks tho.

Link to comment
Share on other sites

Cant really say that there is more functionality to the WinPE2005 WMI part.. i am running the PE2005 and still have to hax stuff to get it to work...

Think that PCI slots will be kind of tricky with the limited support from PE! but there are good .exe's for that I hope... there are .exe's for everything I guess.

Keep truckin...

P.S Mats! Hej på dig! :) Kul med en svensk...

Link to comment
Share on other sites

  • 2 weeks later...

This is starting to bring me down.

Trying to increase the reporting in wmi in pe and keep hitting brick walls.

Tried pciscan and will not run correctly but I dont really want to use it.

Anyone managed to extend the WMI interface?

Link to comment
Share on other sites

I haven't extended WMI, but haven't had a need to... you might try PCI32 from here. You don't need plugins or anything - just chuck pci32.exe, pcidevs.txt and gwiopm.sys into the same directory (doesn't matter which directory) and let er rip :)

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...