How to set condition to check OS requirement in Task Sequence.

Dinesh Vinay 86 Reputation points
2021-01-13T08:34:38.277+00:00

Hello All,

Hope everyone is doing good.

This is the requirement to install sequence of application in Task Sequence. So we are using custom task sequence to run the applications.

There is a requirement that some couple of applications should be run only Windows 10 1903 or higher version otherwise its should quiet and exit from the TS.

In this scenario we need to set condition in TS to check if Windows 10 1903 or higher. The required application need to install otherwise this need to be exit and continue with next step.

Please help me to construct the logic?

Thanks,
Dinesh Vinay

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
917 questions
0 comments No comments
{count} votes

Accepted answer
  1. Simon Ren-MSFT 30,681 Reputation points Microsoft Vendor
    2021-01-14T08:15:35.263+00:00

    Hi,

    Thanks for posting in Microsoft MECM Q&A forum.

    We can simply use the below WQL Query for the task sequence step condition:
    SELECT * FROM Win32_OperatingSystem WHERE Version > "10.0.18362"
    Similar thread for your reference: SCCM | Installing an Application via TS from specific OS version
    Please note: The link is not from Microsoft, just for your reference. Thanks for your time.

    56551-condition.png

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Gary Blok 1,736 Reputation points
    2021-01-14T03:57:17.753+00:00

    Why wouldn't you build the requirements into the Application?
    You can create a global condition on the application itself that would only allow it to be installed on 1903, 1909, 2004, 2009

    56286-image.png

    56415-image.png

    You can use the same idea in the TS too, as a condition on the step:
    56364-image.png

    0 comments No comments