Intune_MAM

I have created a Powershell script to create all “Microsoft apps you can use with Microsoft Intune mobile application management policies” into SCCM with a hybrid Intune.

Download the script and icon from my OneDrive

MAM1


# —————————————————————————–
# Script: CreateIntune_MAM.ps1
# Version: 0.1
# Date:  15/09/2015
# Author:  Per Larsen (https://osddeployment.wordpress.com/)
# —————————————————————————–
#
# Script to create a new Application for creating Word app
#
# —————————————————————————–
#BEGIN
Import-Module $env:SMS_ADMIN_UI_PATH.Replace(“\bin\i386″,”\bin\configurationmanager.psd1”)

$SiteCode = Get-PSDrive -PSProvider CMSITE
Set-Location “$($SiteCode.Name):\”

New-CMApplication -Name “Microsoft Word” -Manufacture “Microsoft” -IconLocationFile “Word.png”
Add-CMDeploymentType -ApplicationName “Microsoft Word” -AndroidDeepLinkInstaller -Deploymenttype “Word – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.office.word&hl=en”
Add-CMDeploymentType -ApplicationName “Microsoft Word” -iOSDeepLinkInstaller -Deploymenttype “Word – iOS” -InstallationFileLocation “https://itunes.apple.com/dk/app/microsoft-word/id586447913?mt=8”

New-CMApplication -Name “Microsoft Excel” -Manufacture “Microsoft” -IconLocationFile “Excel.png”
Add-CMDeploymentType -ApplicationName “Microsoft Excel” -AndroidDeepLinkInstaller -Deploymenttype “Excel – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.office.excel&hl=en”
Add-CMDeploymentType -ApplicationName “Microsoft Excel” -iOSDeepLinkInstaller -Deploymenttype “Excel – iOS” -InstallationFileLocation “https://itunes.apple.com/dk/app/microsoft-excel/id586683407?mt=8”
New-CMApplication -Name “Microsoft PowerPoint” -Manufacture “Microsoft” -IconLocationFile “Powerpoint.png”
Add-CMDeploymentType -ApplicationName “Microsoft PowerPoint” -AndroidDeepLinkInstaller -Deploymenttype “PowerPoint – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.office.powerpoint&hl=en”
Add-CMDeploymentType -ApplicationName “Microsoft PowerPoint” -iOSDeepLinkInstaller -Deploymenttype “PowerPoint – iOS” -InstallationFileLocation “https://itunes.apple.com/dk/app/microsoft-powerpoint/id586449534?mt=8”
New-CMApplication -Name “Microsoft OneNote” -Manufacture “Microsoft” -IconLocationFile “Onenote.png”
Add-CMDeploymentType -ApplicationName “Microsoft OneNote” -AndroidDeepLinkInstaller -Deploymenttype “OneNote – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.office.onenote&hl=en”
Add-CMDeploymentType -ApplicationName “Microsoft OneNote” -iOSDeepLinkInstaller -Deploymenttype “OneNote – iOS” -InstallationFileLocation “https://itunes.apple.com/dk/app/microsoft-onenote-lists-photos/id410395246?mt=8”
New-CMApplication -Name “Microsoft OneDrive” -Manufacture “Microsoft” -IconLocationFile “Onedrive.png”
Add-CMDeploymentType -ApplicationName “Microsoft OneDrive” -AndroidDeepLinkInstaller -Deploymenttype “OneDrive – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.skydrive&hl=en”
Add-CMDeploymentType -ApplicationName “Microsoft OneDrive” -iOSDeepLinkInstaller -Deploymenttype “OneDrive – iOS” -InstallationFileLocation “https://itunes.apple.com/us/app/onedrive-cloud-storage-for/id477537958?mt=8”
New-CMApplication -Name “Microsoft Outlook” -Manufacture “Microsoft” -IconLocationFile “Outlook.png”
Add-CMDeploymentType -ApplicationName “Microsoft Outlook” -AndroidDeepLinkInstaller -Deploymenttype “Outlook – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.office.outlook&hl=en”
Add-CMDeploymentType -ApplicationName “Microsoft Outlook” -iOSDeepLinkInstaller -Deploymenttype “Outlook – iOS” -InstallationFileLocation “https://itunes.apple.com/us/app/microsoft-outlook/id951937596?mt=8”
New-CMApplication -Name “Microsoft Intune Managed Browser” -Manufacture “Microsoft” -IconLocationFile “intune-managed-browser.png”
Add-CMDeploymentType -ApplicationName “Microsoft Intune Managed Browser” -AndroidDeepLinkInstaller -Deploymenttype “Intune Managed Browser – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.intune.mam.managedbrowser&hl=en”
Add-CMDeploymentType -ApplicationName “Microsoft Intune Managed Browser” -iOSDeepLinkInstaller -Deploymenttype “Intune Managed Browser – iOS” -InstallationFileLocation “https://itunes.apple.com/us/app/microsoft-intune-managed-browser/id943264951?mt=8”

New-CMApplication -Name “Microsoft Work Folders” -Manufacture “Microsoft” -IconLocationFile “workfolder.png”
Add-CMDeploymentType -ApplicationName “Microsoft Work Folders” -iOSDeepLinkInstaller -Deploymenttype “Work Folders – iOS” -InstallationFileLocation “https://itunes.apple.com/us/app/work-folders/id950878067?mt=8”

New-CMApplication -Name “Microsoft Intune PDF Viewer” -Manufacture “Microsoft” -IconLocationFile “Intune-PDF-Viewer.png”
Add-CMDeploymentType -ApplicationName “Microsoft Intune PDF Viewer” -AndroidDeepLinkInstaller -Deploymenttype “Intune PDF Viewer – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.intune.mam.pdfviewer”
New-CMApplication -Name “Microsoft Intune AV Player” -Manufacture “Microsoft” -IconLocationFile “Intune-AV-Player.png”
Add-CMDeploymentType -ApplicationName “Microsoft Intune AV Player” -AndroidDeepLinkInstaller -Deploymenttype “Intune AV Player – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.intune.mam.avplayer”

New-CMApplication -Name “Microsoft Intune Image Viewer” -Manufacture “Microsoft” -IconLocationFile “Intune-Image-Viewer.png”
Add-CMDeploymentType -ApplicationName “Microsoft Intune Image Viewer” -AndroidDeepLinkInstaller -Deploymenttype “Intune Image Viewer – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.intune.mam.imageviewer”

New-CMApplication -Name “Microsoft Office Mobile” -Manufacture “Microsoft” -IconLocationFile “Microsoft-Office-Mobile.png”
Add-CMDeploymentType -ApplicationName “Microsoft Office Mobile” -AndroidDeepLinkInstaller -Deploymenttype “Microsoft Office Mobile – Android” -InstallationFileLocation “https://play.google.com/store/apps/details?id=com.microsoft.office.officehub”