Let’s explore another magical spell for Microsoft Intune
I was recently tasked by some of our Intune customers to find users who have installed a particular app
on their devices in their organization.
I thought why just give them the report, lets give them the script in which they can just input the application display name and it will extract the below information for all the devices that have it installed.
- id
- deviceName
- AppName
- Appversion
- Appid
- SizeinByte
- enrolledDateTime
- lastSyncDateTime
- emailAddress
- serialNumber
- complianceState
Download the script from below github link or from PowerShell Gallery
https://github.com/VikasSukhija/Downloads/blob/master/IntuneDeviceApplicationFind.ps1
https://www.powershellgallery.com/packages/IntuneDeviceApplicationFind
Install-Script -Name IntuneDeviceApplicationFind
Prerequisites : Install Intune PowerShell Module
Now on running the script it will popup for authentication. (enter Intune Administrator account and password)
Ones authenticated, it will prompt you for the application that you want to find, type as an example: TikTok
It will fetch all the devices in your organization and start searching for the tiktok app and will show the progress on screen.
After it will finish processing all the devices, it will save the report in CSV format under reports folder.
I hope this script will assist many of office 365 administrator that are tasked with same task.
Thank you for reading and downloading..
Tech Wizard
How do i use this if i am not 100% sure of the name or i want to view all Microsoft office installs regardless of version?
And is it possible to limit to only search Windows machines and not mobile devices as well?
You need to apply the filtering at this line of the script…
$getalldevices = Get-IntuneManagedDevice -Filter “managementagent eq ‘mdm'” | Get-MSGraphAllPages
Can I search for spesific words in the app name or does it have to be 100% match?
As per I remember yes you can.
Do the script also find apps on Android Enterprise Devices. In the report i only found the App on iOS and Android4Work.
It should if those are enrolled.
What Reports folder is it going to? In the Intune Admin Center?
Report folder is in the folder from where script is being run.