{"id":4649,"date":"2021-12-14T13:51:16","date_gmt":"2021-12-14T11:51:16","guid":{"rendered":"https:\/\/www.msb365.blog\/?p=4649"},"modified":"2023-06-23T10:59:42","modified_gmt":"2023-06-23T08:59:42","slug":"powershell-script-microsoft-intune","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=4649","title":{"rendered":"Deploying Intune Applications"},"content":{"rendered":"<p>This article is a follow-up article based on my article &#8220;<a href=\"https:\/\/www.msb365.blog\/?p=4600\" target=\"_blank\" rel=\"noopener\">Microsoft Intune Automatization Script<\/a>&#8220;.<br \/>\nIn this article, I introduce you to another script on the topic of Microsoft Intune and explain it to you here.<\/p>\n<p>This time it&#8217;s about deploying various applications which can then be used for the Endpoint Manager.<br \/>\nI wrote this script together with my colleague <strong>Sandro Schmocker<\/strong> and am happy to make it available to you via my Github. You can find the link to it further down in this article.<\/p>\n<h3>What does this script do?<\/h3>\n<p>This script serves to provide standard applications as .INTUNEWIN for the Endpoint Manager.<br \/>\nWe have taken care of the following applications:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Citrix Workspace<\/li>\n<li>Forti SSL VPN Client (including configuration)<\/li>\n<li>Google Chrome<\/li>\n<li>Microsoft Company Portal<\/li>\n<li>Microsoft Desktop App installer<\/li>\n<li>Mozilla Firefox.<\/li>\n<li>Adobe Reader DC<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>How does the script work?<\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"301\">After the script is executed, the first thing that appears is a welcome message.<\/p>\n<p>Please note: There is no need to prepare the script or change any variables beforehand. Everything that is needed is requested in the script.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4441.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4653\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4441.png\" alt=\"\" width=\"246\" height=\"61\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">After the welcome, the raw data is downloaded from Github, this must be confirmed briefly.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4442.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4654\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4442.png\" alt=\"\" width=\"439\" height=\"124\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4442.png 439w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4442-300x85.png 300w\" sizes=\"(max-width: 439px) 100vw, 439px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">Then the script checks if the directory C:\\MDM\\AppSelector exists, if not, this directory will be created here.<\/p>\n<p>&nbsp;<\/p>\n<p>This directory serves as the target for the Github download and also as the target for the packages created at the end.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4655\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443.png\" alt=\"\" width=\"542\" height=\"372\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443.png 542w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443-300x206.png 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">If the directory already exists, we get this message<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4656\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443-1.png\" alt=\"\" width=\"414\" height=\"74\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443-1.png 414w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4443-1-300x54.png 300w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">Now the required zip file is downloaded from Github, unzipped and renamed accordingly.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4444.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4657\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4444.png\" alt=\"\" width=\"690\" height=\"151\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4444.png 690w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4444-300x66.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4444-600x131.png 600w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">As a final preparation, a customer name must now be entered. This is used to ensure that the packages to be created are stored correctly.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4445.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4658\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4445.png\" alt=\"\" width=\"481\" height=\"41\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4445.png 481w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4445-300x26.png 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">Now we come to the actual script. Here we have a choice of which package we want to create. We can decide whether it should be a single package or all seven available packages.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4446.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4659\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4446.png\" alt=\"\" width=\"383\" height=\"208\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4446.png 383w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4446-300x163.png 300w\" sizes=\"(max-width: 383px) 100vw, 383px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">In this example, I have chosen number 7, where we see that Google Chrome is being prepared.<\/p>\n<p>At the end we see where the final file will be placed.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4660\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447.png\" alt=\"\" width=\"1129\" height=\"800\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447.png 1129w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447-300x213.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447-1024x726.png 1024w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447-768x544.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447-600x425.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4447-905x641.png 905w\" sizes=\"(max-width: 1129px) 100vw, 1129px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"301\">Once we have completed the deployment, we can then find our finished packages in the appropriate directory. These can now be uploaded and distributed in the Endpoint Manager.<\/td>\n<td width=\"301\"><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4448.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4661\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4448.png\" alt=\"\" width=\"860\" height=\"383\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4448.png 860w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4448-300x134.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4448-768x342.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/4448-600x267.png 600w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><\/h3>\n<h3>Where can I download the script?<\/h3>\n<p>The script is available in my Github repository as described at the beginning.<\/p>\n<blockquote><p>You can download the script <span style=\"color: #ffcc00;\"><strong><a style=\"color: #ffcc00;\" href=\"https:\/\/raw.githubusercontent.com\/MSB365\/Deploying_Intune_Applications\/main\/AppSelector.ps1\" target=\"_blank\" rel=\"noopener\">here<\/a><\/strong><\/span>!<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h3>Postskriptum (update)<\/h3>\n<p>It was pointed out to me in a community forum that some people have problems processing the output of this script or distributing the packages in the endpoint manager.<\/p>\n<p>Since the basis of these applications is WINGET, appropriate commands must be provided for the deployment.<br \/>\nThese are documented on the Github page, where the raw data is located. You can find the link here:<\/p>\n<blockquote><p><strong><a href=\"https:\/\/github.com\/sschmocker\/intune_app_deployment\" target=\"_blank\" rel=\"noopener\">Github App deployment<\/a><\/strong><\/p><\/blockquote>\n<p>It should also be noted that the apps marked as mandatory in the script must also be distributed accordingly.<\/p>\n<p>Here is the screenshot:<\/p>\n<p><a href=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/zzzzuuuz.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4667\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/zzzzuuuz.png\" alt=\"\" width=\"348\" height=\"176\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/zzzzuuuz.png 348w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2021\/12\/zzzzuuuz-300x152.png 300w\" sizes=\"(max-width: 348px) 100vw, 348px\" \/><\/a><\/p>\n<p>I hope that everything is now clear and nothing stands in the way of successful use.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is a follow-up article based on my article &#8220;Microsoft Intune Automatization Script&#8220;. In this article, I introduce you to another script on the topic of Microsoft Intune and explain it to you here. This time it&#8217;s about deploying various applications which can then be used for the Endpoint Manager. I wrote this script [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1923,1988,3],"tags":[],"class_list":["post-4649","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365","category-ms-intune","category-powershell"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/4649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4649"}],"version-history":[{"count":6,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/4649\/revisions"}],"predecessor-version":[{"id":4668,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/4649\/revisions\/4668"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/media\/4651"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}