none
Conditional task sequence step based on a computername RRS feed

  • Question

  • I need to create a task sequence step that will be executed  only on a computers where the computer name contains a certain string. What would be the correct way to do this?

    Wednesday, November 18, 2015 7:04 AM

Answers

  • If you select any task sequence step and go to the Options tab you can choose Add->Query WMI

    and do something like:

    Select * from Win32_ComputerSystem where Name like "%TST%"

    Where TST is the string you want to filter on.


    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.


    Wednesday, November 18, 2015 7:43 PM
    Moderator

All replies

  • If you select any task sequence step and go to the Options tab you can choose Add->Query WMI

    and do something like:

    Select * from Win32_ComputerSystem where Name like "%TST%"

    Where TST is the string you want to filter on.


    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.


    Wednesday, November 18, 2015 7:43 PM
    Moderator
  • Thanks! This was exactly what I was after. I didn't remember that I can use WMI from MDT :/
    Thursday, November 19, 2015 1:38 PM