Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WMI hardware detection

Featured Replies

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?

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!

  • Author

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.

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

  • Author
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.

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...

If you're not stuck on using WMI, maybe check out pciscan.exe from Bart's website, www.nu2.nu.

Oki sorry I just needed the CD letter and that was what I was using before 2004/2005

Br4tt3:

Hej Själv. Alltid rolig med landsmän

  • 2 weeks later...
  • Author

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?

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 :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.