Get iTunes App Store or Google Play app links with PowerShell
When dealing with Mobile Application Management in Microsoft Intune or ConfigMgr, you’re likely to distribute or require a set of apps to be installed on end-users mobile devices. In ConfigMgr there’s a wizard that helps you browse for the app you want to make available in the Company Portal, but for Microsoft Intune you’ll have to provide the link to the app in the iOS store for instance. So I figured that instead of browsing the different app stores, why not simply run a PowerShell script to search for the app you want that shows you the link to use in either Microsoft Intune or ConfigMgr?
Download the script
I’ve made the script availabe on TechNet Gallery.
This script is pretty straight forward, there’s a set of mandatory parameters that it needs to function.
Get-StoreAppInformation [-Store <string>] [-AppName <string>] [-Limit <string>]
You’re able to select what store you’d want to search in and specify the app name. For the iTunes (App Store) you can also specify a limit for the results you want to be given. For instance if you want to search for the Microsoft Word app in the iTunes store, perform the following steps:
- Download the script and put it on e.g. C:\Scripts on any system with internet access.
- Open a PowerShell console and browse to where you put the script, e.g. C:\Scripts.
- Run the following command:
.\Get-StoreAppInformation.ps1 -Store iTunes -AppName "Microsoft Word" | fl
The script will then output an object if anything was found for the specified app name. Simply copy the URL from the StoreLink property and paste it into either Microsoft Intune or ConfigMgr.
Principal Consultant and Enterprise Mobility MVP since 2016. Nickolaj has been in the IT industry for the past 10 years specializing in Enterprise Mobility and Security, Windows devices and deployments including automation. Currently working for TrueSec as a Principal Consultant. Awarded as PowerShell Hero in 2015 by the community for his script and tools contributions. Creator of ConfigMgr Prerequisites Tool, ConfigMgr OSD FrontEnd, ConfigMgr WebService to name a few. Frequent speaker at conferences and user groups.