Install application via AD groups during OSD


You can install application dynamically with AD groups and create role based installations. Thanks to Jörgen Nilsson for the inspiration.

1. Download Get-AppGroups.ps1 and put in a SCCM package.

2. Create an AD security group with A. prefix and .I suffix. Ex: “A.Oracle Sun Java 8 Update 91.I”.
image

3. Add the application name from SCCM in the description of the AD group that you created in step 2.

Group in AD
image

Application In SCCM. Make sure that “allow applications to be installed during Task Sequence without being deployed” is marked.image

4. Create a “Run PowerShell Script” after “Setup Windows and Configuration Manager”
image

image

5. Create a “Install Application” step
image

Add “COALESCEDAPPS” to “Base variable name”
image

To make sure that the task sequence doesn’t fail, if no application is selected, add this variable.image

You can now deploy Application and/or package with the AD groups.image

If you want to create role based installation, then you can nest the groups. Ex:

1. Create a AD group Called “Role IT” and add you computer to the group.image

2. Open the first software group and add the “Role IT” group
image

3. Open the second software group and add the “Role IT group”
image

Then you just add computer’s to the “Role IT” group.