Add package of drivers for optional PCI graphic card at OSD time

Roberto 646 Reputation points
2021-02-11T13:44:43.067+00:00

Hello.

I just tried to install a GPU driver package (WMI query), but it is skipped.
Here's the relevant steps in my task sequence:
0) initial steps

  1. apply OSD
  2. windows and network settings
  3. apply PC model device drivers package (WMI condition based on HP model name)
  4. apply optional graphic card device drivers package (WMI condition based on GC caption)
  5. install configuration manager client
  6. more steps

in details:
step 3, package is installed and here's the WMI query:
select model from win32_computersystem where model like "HP EliteDesk 800 G5 TWR%"

step 4, package is not installed and here's the WMI query:
select caption from win32_VideoController where caption like "NVIDIA GeForce RTX 2060%"

Could it be that until device drivers for that GPU is not installed, the caption name is not known? Should I instead base my WMI query to manufacturer and model ID numbers read from the GPU?
I'd appreciate some guidance on this task.

Thank you and best regards.
Roberto

Microsoft Security | Intune | Configuration Manager | Deployment
Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

Accepted answer
  1. Roberto 646 Reputation points
    2021-02-11T20:10:51.017+00:00

    Hi.

    That didn't work.. maybe in WinPE that device is not yet recognized as a VideoController.
    So, I now changed the WMI query to:
    select pnpdeviceid from win32_PnPEntity where pnpdeviceid like "%VEN_10DE&DEV_1F08%"

    I'll try that tomorrow to check if that works.

    In the meanwhile, any hint will be welcome.


3 additional answers

Sort by: Most helpful
  1. Roberto 646 Reputation points
    2021-02-11T15:09:25.08+00:00

    I'm right now trying a modified task sequence.
    Fo step 4, I modified the WMI query as follows:
    select pnpdeviceid from win32_VideoController where pnpdeviceid like "%VEN_10DE&DEV_1F08%"

    I'll post here the results ASAP.

    Best regards.
    Roberto

    0 comments No comments

  2. AlexZhu-MSFT 6,591 Reputation points Moderator
    2021-02-12T05:32:04.127+00:00

    Hi,

    It seems the logic is correct. To verify why it doesn't work, we could check smsts.log for more details.

    I don't have a specific HP computer at hand, so I did a lab test with a virtual machine to verify the logic. both *win32_computersystem * and *w32_VideoController * work.

    select model from win32_computersystem where model like "virtual machine"  
    select caption from win32_VideoController where caption like "Microsoft Hyper-V%"  
    

    screenshots about smsts.log (located in c:\windows\ccm\logs)
    sccm_osd_wmi_00.PNG
    67234-sccm-osd-wmi-00.png

    sccm_osd_wmi_01.PNG
    67168-sccm-osd-wmi-01.png

    and the settings in the task sequence.
    sccm_osd_wmi_02.PNG
    67291-sccm-osd-wmi-02.png

    Hope the above information helps.

    Alex
    If the response is helpful, please click "Accept Answer" and upvote it.


  3. Gary Blok 1,756 Reputation points MVP
    2021-02-12T06:08:17.313+00:00

    in WinPE on that model, run the command: Get-CimInstance -ClassName win32_VideoController
    See what returns and what you can then query on.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.