Still remoting in to hunt for uninstall strings? Intune now hands them to you
Intune App inventory shows every app on a Windows device, including the install location and the uninstall command, without remoting in or digging through the registry. Here is how to switch it on with a Properties catalog policy, the two properties people forget to tick, and how to turn an uninstall string into something you can actually deploy.
Every packager knows the routine. A ticket says an old app needs to go. You remote onto a machine, open the registry, scroll through the Uninstall keys, find a GUID that looks right, guess the install folder for the detection rule, and hope MsiExec /X works first time. Multiply that by every app in a legacy clean up and it eats a week.
You do not need to do that anymore. Intune App inventory lists every app on a Windows device, whether Intune installed it or not, and it can show the install location and the uninstall command for each one. It refreshes several times a day and it is on one screen in the admin center.
There is one catch that trips people up. App inventory does nothing until you assign a Properties catalog policy, and the two most useful columns, install location and uninstall command, are optional properties you have to tick yourself. If you build the policy with the defaults, you get app names and versions and nothing else.
What App inventory gives you
App inventory extends the device inventory agent on Windows so it also collects app data. Microsoft describes it as the intended long term replacement for Discovered apps, and the two run side by side for now.
| Discovered apps | App inventory | |
|---|---|---|
| Setup needed | None | A Properties catalog policy |
| Refresh | Every seven days (24 hours for Win32 via the Intune Management Extension) | Several times a day for active devices |
| Platforms | Windows, macOS, iOS, Android | Windows only for now |
| Users | Last signed in user | Every user on the device |
| Install path and uninstall command | No | Yes, if you collect them |
Win32 apps are read from the registry Uninstall keys, both machine wide and per user, including 32 bit apps on 64 bit Windows. Store apps come from the Windows package manager. Each record says whether the app is installed for the whole device or for a specific user.
Before you start
- Devices. Windows 10 or 11, enrolled in Intune and Microsoft Entra joined, which is the requirement Microsoft's documentation states. If most of your estate is hybrid joined, include a few hybrid devices in the pilot and check that they report.
- Role. You need rights to create device configuration profiles, such as Policy and Profile manager.
- A pilot group. A small device group to assign the policy to first.
- Cloud. It works in GCC High, but not in Microsoft Azure operated by 21Vianet.
The steps, in order
- Open the configuration area. In the Intune admin center, go to device configuration and create a new policy.
Devices > Manage devices > Configuration > Create > New policy
-
Choose the profile type. Set Platform to Windows 10 and later and Profile type to Properties catalog, then select Create.
-
Name it clearly. Something like
App inventory all properties, with a description saying what it collects and why. -
Add the application properties. On Configuration settings, select Add properties and tick ApplicationProperties. The required properties are selected for you, which are App Name, App Version, Publisher, Architectures and the install scope fields.
-
Tick the optional properties you actually want. This is the step people miss. For packaging work, tick these at a minimum. * Install location, for detection rules. * Uninstall command, for removal scripts. * Platform specific app ID, which gives you the MSI product code for Win32 apps or the package full name for Store apps. * Install date and Estimated size, which help when you are cleaning up old software.
Modify command, Languages and Install Scope User Name are there too if you need them.
-
Assign it to the pilot group. Device groups or user groups both work. Start small.
-
Create the policy and wait for a check in. Collection starts at the next device check in. The first upload is a full inventory, and after that the device only sends changes, so the second round is much lighter.
-
Open a device. Find one of the pilot devices and open its app list. Microsoft's documentation shows the path below. On some tenants the tabs are labelled Managed apps and App inventory instead, so look for the App inventory tab either way.
Devices > All devices > (device) > All apps > App inventory
- Add the columns. Use Columns to show Install location, Uninstall command and Installed for. Use Export if you want the whole list in a spreadsheet, which is the quickest way to work through a large clean up.
/I and the per user install are the two traps covered in steps 10 and 12.- Turn the uninstall string into a silent command. This is where experience matters, because the value is copied straight from the registry and it is not always ready to deploy. Many MSI apps record their uninstall string as
MsiExec.exe /I{GUID}. The/Iswitch opens the installer in maintenance mode. It does not remove the app. For a silent removal, swap it for/Xand add quiet switches.
# Value shown in App inventory
# MsiExec.exe /I{3C7A8F12-4B6D-4E2A-9F1C-8D5E2A7B6C40}
# What you actually deploy
msiexec.exe /x "{3C7A8F12-4B6D-4E2A-9F1C-8D5E2A7B6C40}" /qn /norestart /l*v "C:\Windows\Temp\AppRemove.log"
For apps that are not MSI based, the uninstall command usually points at an EXE. Check the vendor documentation for its silent switch, which is often /S, /silent or /quiet, because the inventory value rarely includes it.
-
Use the install location for detection. The install location gives you the folder for a file based detection rule in a Win32 app, or for a Remediations detection script. Pick a file inside that folder that only exists when the app is installed, usually the main EXE.
-
Watch the install scope. If Installed for shows a specific user rather than the device, the app lives in that user's profile. A removal running as SYSTEM will not see it. Run the uninstall in the user context, or use a script that handles each user profile.
-
Widen the assignment. Once the pilot devices report correctly, assign the policy to the rest of the estate. If you have other Properties catalog policies, they merge, and where two policies disagree, collect beats do not collect for each property.
Verify it worked
- Data appears. The App inventory tab on a pilot device lists apps with a recent last checked time.
- The optional columns have values. Install location and uninstall command show data for most Win32 apps. Some apps will be blank because the vendor never wrote the value into the registry, and that is normal.
- It matches the device. For a quick spot check, compare the inventory with the registry on a pilot device.
$paths = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
Get-ItemProperty $paths -ErrorAction SilentlyContinue |
Where-Object DisplayName |
Select-Object DisplayName, DisplayVersion, InstallLocation, UninstallString |
Sort-Object DisplayName
The names, versions and uninstall strings should line up with what Intune shows.
- Uninstalls work. A Win32 app built from an inventory uninstall string removes the app silently on a test device, and the detection rule reports it as removed.
Roll back
Unassign or delete the Properties catalog policy. The device keeps collecting for about three days, which Microsoft keeps as a buffer for devices that are offline over a weekend, and then it stops and the data is removed from the service. Discovered apps is not affected at any point, so you lose nothing you had before.
Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
| App inventory tab is empty | No Properties catalog policy assigned, or the device has not checked in | Check the assignment and sync the device |
| Apps listed but no install location or uninstall command | The optional properties were not ticked | Edit the policy, add Install location and Uninstall command |
| One app has no uninstall command | The vendor never wrote the value to the registry | Use the product code from the Package Name column, or the vendor's removal tool |
| MSI uninstall opens a repair window | The registry string uses /I |
Use /X with /qn as in step 10 |
| Removal as SYSTEM says the app is not installed | The app is installed per user | Run the uninstall in the user context |
| Device never reports | Device is not Entra joined, or runs in a cloud where the feature is not supported | Check the join type and the cloud |
For me the biggest win is not any single app. It is being able to export every install path and uninstall string across a set of devices and plan a legacy clean up from a spreadsheet, instead of remoting into machines one at a time.
Comments
Questions, corrections or your own experience with this? Sign in with GitHub to comment.