Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, January 31, 2013 1:03 AM
Hi All,
I am having an issue with a WMI query in WinPE. I am trying to query WMI to find part of the DeviceID and install a video driver package if it matches. Here is what I have:
SELECT DeviceID FROM Win32_PnPEntity WHERE DeviceID like "PCI\VEN_10DE&DEV_06E4%"
This works fine from the Windows 7 OS when I test this from my task sequence, but it looks like it may not exist in WinPE? What I have gathered from my searches is that WMI is very limited in PE and have been looking for a "list" of supported WMI commands, but have not found any. I am running SCCM 2012 SP1 and deploying Windows 7 x64 Pro. Should I ditch WMI in PE and look at another method? Thanks in advance.
All replies (4)
Thursday, January 31, 2013 10:28 AM âś…Answered
Hi,
How about something like this:
wmic:root\cli>path Win32_PNPEntity where "PNPDeviceID like 'PCI\VEN_10DE&DEV_06E4%'" get caption
Thursday, January 31, 2013 1:54 AM
No, WMI should be fully enabled in PE.
Have you tried your query (or listing all objects from that class) from a command-prompt started from within PE using WMIC?
Jason | http://blog.configmgrftw.com
Thursday, January 31, 2013 6:00 AM
Hi Jason,
Here is the result of me trying this WMI command in PE:
wmic:root\cli>SELECT DeviceID FROM Win32_PnPEntity WHERE DeviceID like "PCI\VEN_10DE&DEV_06E4%"
SELECT - Alias not found.
I guess I will need to find a new command instead of SELECT to get the device ID in WinPE or there is something basic I am missing. Currently reading up on the commands.
Thursday, January 31, 2013 2:37 PM
Hi,
How about something like this:
wmic:root\cli>path Win32_PNPEntity where "PNPDeviceID like 'PCI\VEN_10DE&DEV_06E4%'" get caption
Exactly what I am looking for, thank you.