{"id":886,"date":"2016-05-20T22:09:23","date_gmt":"2016-05-20T20:09:23","guid":{"rendered":"http:\/\/www.rolig.dk\/?p=886"},"modified":"2016-05-20T22:09:23","modified_gmt":"2016-05-20T20:09:23","slug":"install-application-during-osd-via-ad-groups","status":"publish","type":"post","link":"https:\/\/rolig.dk\/?p=886","title":{"rendered":"Install application via AD groups during OSD"},"content":{"rendered":"<p>You can install application dynamically with AD groups and create role based installations. Thanks to <a href=\"http:\/\/ccmexec.com\/2016\/05\/installing-applications-dynamically-during-os-using-ad-group\/\" target=\"_blank\" rel=\"noopener noreferrer\">J\u00f6rgen Nilsson<\/a> for the inspiration.<\/p>\n<p>1. Download <a href=\"https:\/\/onedrive.live.com\/redir?resid=447ADB7F2AA023F5!10915&amp;authkey=!ABTLDiQQfNwEfnA&amp;ithint=folder%2cwsf\" target=\"_blank\" rel=\"noopener noreferrer\">Get-AppGroups.ps1<\/a> and put in a SCCM package.<\/p>\n<p>2. Create an AD security group with A. prefix and .I suffix. Ex: \u201cA.Oracle Sun Java 8 Update 91.I\u201d.<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-57.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-57.png\" alt=\"image\" width=\"600\" height=\"508\" border=\"0\" \/><\/a><\/p>\n<p>3. Add the application name from SCCM in the description of the AD group that you created in step 2.<\/p>\n<p>Group in AD<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-58.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-58.png\" alt=\"image\" width=\"600\" height=\"113\" border=\"0\" \/><\/a><\/p>\n<p>Application In SCCM. Make sure that \u201callow applications to be installed during Task Sequence without being deployed\u201d is marked.<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-59.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-59.png\" alt=\"image\" width=\"600\" height=\"81\" border=\"0\" \/><\/a><\/p>\n<p>4. Create a \u201cRun PowerShell Script\u201d after \u201cSetup Windows and Configuration Manager\u201d<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-60.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-60.png\" alt=\"image\" width=\"263\" height=\"105\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-61.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-61.png\" alt=\"image\" width=\"526\" height=\"391\" border=\"0\" \/><\/a><\/p>\n<p>5. Create a \u201cInstall Application\u201d step<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-62.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-62.png\" alt=\"image\" width=\"350\" height=\"89\" border=\"0\" \/><\/a><\/p>\n<p>Add \u201cCOALESCEDAPPS\u201d to \u201cBase variable name\u201d<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-66.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-66.png\" alt=\"image\" width=\"509\" height=\"581\" border=\"0\" \/><\/a><\/p>\n<p>To make sure that the task sequence doesn&#8217;t fail, if no application is selected, add this variable.<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-70.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-70.png\" alt=\"image\" width=\"533\" height=\"373\" border=\"0\" \/><\/a><\/p>\n<p>You can now deploy Application and\/or package with the AD groups.<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-71.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-71.png\" alt=\"image\" width=\"532\" height=\"221\" border=\"0\" \/><\/a><\/p>\n<p>If you want to create role based installation, then you can nest the groups. Ex:<\/p>\n<p>1. Create a AD group Called \u201cRole IT\u201d and add you computer to the group.<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-72.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-72.png\" alt=\"image\" width=\"515\" height=\"596\" border=\"0\" \/><\/a><\/p>\n<p>2. Open the first software group and add the \u201cRole IT\u201d group<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-73.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-73.png\" alt=\"image\" width=\"517\" height=\"602\" border=\"0\" \/><\/a><\/p>\n<p>3. Open the second software group and add the \u201cRole IT group\u201d<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-74.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-74.png\" alt=\"image\" width=\"522\" height=\"604\" border=\"0\" \/><\/a><\/p>\n<p>Then you just add computer\u2019s to the \u201cRole IT\u201d group.<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Frolig.dk%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F886&#038;text=Hey%20check%20this%20out\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/rolig.dk\/wp-content\/plugins\/social-media-feather\/synved-social\/addons\/extra-icons\/image\/social\/circle\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Frolig.dk%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F886&#038;title=Install%20application%20via%20AD%20groups%20during%20OSD\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/rolig.dk\/wp-content\/plugins\/social-media-feather\/synved-social\/addons\/extra-icons\/image\/social\/circle\/96x96\/linkedin.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>You can install application dynamically with AD groups and create role based installations. Thanks to J\u00f6rgen 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: \u201cA.Oracle Sun Java 8 Update 91.I\u201d. 3. Add the application name from SCCM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[42],"class_list":["post-886","post","type-post","status-publish","format-standard","hentry","category-sccm","tag-sccmosdapplication"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=886"}],"version-history":[{"count":0,"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/886\/revisions"}],"wp:attachment":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}