SCCM - Advertising Applications by Condition


Task – To advertise an application with condition that there should be windows 7 and Microsoft office 2010 on the target machine.

      There are two ways of doing this:- 
  •             To advertise the application using Task sequence. 
  •             To create a collection with Query rule (with windows 7 & Microsoft office 2010) and then to advertise the application to the collection.
  1.    To advertise the application using the Task sequence.
      Steps :- 
            1>Create a new Task sequence.

2>Create a new custom Task sequence.

3>Name the Task sequence.
4>Click next,next ,next and complete the task sequence creation process.
5>Edit the task sequence.


6>Add application to the Task sequence.

7>Goto the option menu in the Task Sequence
Goto Add Condition         Choose Operating system version    
Check Windows 7(this option will check the operating system on the target machine).
8>Add one more condition this one will be for Microsoft office 2010.
Add condition     Choose Registry setting from the drop down menu.

9>Enter the registry key for Microsoft Office 2010          choose “exists” as condition from the drop down menu.(this will search  the specified path  in the registry and check  if it is valid or not ).
Leave the Value name blank(this is optional).
10> After adding both the conditions the Task Sequence will be like:-

NOTE – When we deploy Windows 7 on a new machine there is already an entry in the registry for office which is present in the location “HKEY LOCAL MACHINE \SOFTWARE\MOCROSOFT\OFFICE”. So, when we are selecting this option for advertising applications with conditions Office value should be added or any specific path which is present in the office folder in the registry should be added.
  
            To create a collection with Query rule (with windows 7 & Microsoft office 2010) and then to advertise the application to the collection.
  
           1>Create a new collection.
2>Give the collection a name, click next.
3>Apply membership rule to the collection. Click the cylindrical button.

4>Provide a name to the Query rule. Click on edit Query statement.

5>Goto the criteria tab & click on the yellow button to create a new query.


6>Click on select button & in the Select Attribute            select Operating system as Attribute class & caption as Attribute. Click ok.



7>Click on the value button and select windows 7.click ok.


8>click the yellow button again for Office 2010 and repeat the same process again.

Click on the select button and in the select attribute option select “add/remove programs” in the attribute class and “display name” as the attribute. Click ok.

9>In the value field type “Microsoft Office Enterprise 2010” and click ok.


10>Final collection query will look like this:-

After creating the collection update the collection and all the machines which are having windows 7 and Microsoft Office 2010 will be automatically listed in the collection.
Now we can directly advertise the application to the collection.

No comments:

Post a Comment