Ask a questionAsk a question
 

AnswerTask Sequence Conditions Processor version

  • Tuesday, November 03, 2009 11:39 AMJonathan Reddington Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have OSD working perfectly with 2 images (1 for AMD processors and 1 for Intel)
    currently I only have one model of AMD so I use the task sequence condition:
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE "HP Compaq dc5850 Small Form Factor"
    I am about to get another couple of models of AMD and I would like to change this query to use processor type instead of model.
    looking in wbemtest I cannot query Win32_Processor directly as the properties are in the specific instance Win32_Processor.DeviceID="CPU0" etc
    can someone help me write a simple 1 line query using the value of manufacturer from this instance?
    Thanks

Answers

All Replies

  • Wednesday, November 04, 2009 6:01 AMVitalie Ciobanu Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Jonathan,

    Open a command prompt and type "WMIC CPU Get Manufacturer, Name, Description". Here http://msdn.microsoft.com/en-us/library/aa394373(VS.85).aspx (or type CPU Get /?) you can find what other values you can query.

    When you found what is best for you, put a condition like this in your TS: SELECT * FROM Win32_Processor WHERE Manufacturer like "%GenuineIntel%" for example.
    Hope it works, as I cannot test this now.
  • Tuesday, November 10, 2009 9:48 AMJonathan Reddington Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for the reply Vitalie,
    I have tried this and changed it about slightly and it works, here is what I had to change it to: "SELECT * FROM Win32_Processor WHERE Manufacturer LIKE "GenuineIntel"" and "SELECT * FROM Win32_Processor WHERE NOT Manufacturer LIKE "GenuineIntel"" for the AMD image

    Thanks for your help.
  • Tuesday, November 10, 2009 10:10 AMVitalie Ciobanu Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Glad I could help you.
    All the best!