Check which operating system a task sequence is run on

From The IT Community
Jump to: navigation, search




If you have a SCCM task sequence that can upgrade more than one operating system (for example XP and Vista to Windows 8), you might want to do different stuff depending on the installed operating system. This can be important if you want to use USMT.


Here is how to check which operating system a task sequence is run on:

  • Open your task sequence.
  • Create a new Group.
  • Select the group and select the Options tab.
  • Select Add Condition and Query WMI.
  • If for example you want to check if the installed operating system is Windows XP than add the following query:
Select * FROM Win32_OperatingSystem WHERE Caption LIKE "%XP%"

for Vista it would be

Select * FROM Win32_OperatingSystem WHERE Caption LIKE "%VISTA%"

and so on.

  • Now, everything you place in this group will only be executed if the operating system matches the query you just created.


Was this article helpful? Then please donate to keep The IT Community alive...

If you found this article helpful please share it, comment and help others by writing your own article.






Translate this page:




Articles found in the same category:
(max. 20 shown)