gadget Posted June 28, 2005 Share Posted June 28, 2005 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 More sharing options...
Br4tt3 Posted June 28, 2005 Share Posted June 28, 2005 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 More sharing options...
gadget Posted June 28, 2005 Author Share Posted June 28, 2005 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 More sharing options...
mats Posted July 1, 2005 Share Posted July 1, 2005 Is it simply the existens of a cd drive you need?in that case this might dosub 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 Nextend sub Link to comment Share on other sites More sharing options...
gadget Posted July 1, 2005 Author Share Posted July 1, 2005 Is it simply the existens of a cd drive you need?in that case this might dosub 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 Nextend sub<{POST_SNAPBACK}>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 More sharing options...
Br4tt3 Posted July 6, 2005 Share Posted July 6, 2005 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 More sharing options...
tguy Posted July 6, 2005 Share Posted July 6, 2005 If you're not stuck on using WMI, maybe check out pciscan.exe from Bart's website, www.nu2.nu. Link to comment Share on other sites More sharing options...
mats Posted July 6, 2005 Share Posted July 6, 2005 Oki sorry I just needed the CD letter and that was what I was using before 2004/2005Br4tt3:Hej Själv. Alltid rolig med landsmän Link to comment Share on other sites More sharing options...
gadget Posted July 18, 2005 Author Share Posted July 18, 2005 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 More sharing options...
n00dles Posted July 21, 2005 Share Posted July 21, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now