none
Task Sequence error

    Question

  • Hi,

    I am running a task sequence.

    The condition which i mentioned is if the computer as total physical memory more than 7GB then olny it should run

    The query is below

    Select * from Win32_ComputerSystem WHERE TotalPhysicalMemory < 7516192768

    But even the machine has more than 8 GB memory,still the TS fails.

    Any idea

    Thanks,

    Prajith

    Tuesday, January 30, 2018 1:53 PM

All replies

  • Hi jith1,

    Did you test your WMI query by creating a new collection and check if you see all the computers with less than 8GB?

    Regards

    Simon

    Tuesday, January 30, 2018 2:15 PM
  • >>Select * from Win32_ComputerSystem WHERE TotalPhysicalMemory < 7516192768

    Less than 8 GB memory?

    Also take a look at smsts.log.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, January 31, 2018 3:19 AM
  • You query indicates, run TS only if memory is less than 7GB.

    You need to change the query to:

    Select * from Win32_ComputerSystem WHERE TotalPhysicalMemory > 7516192768

    Before running query, just verify the query by running in "wbemtest " through cmd prompt, click on "Query" and type Select * from Win32_ComputerSystem WHERE TotalPhysicalMemory > 7516192768

    if 1 row is fetched, then query has returned true, and TS will run on this system.  


    MANISH BANGIA

    Monday, March 26, 2018 12:19 AM