Setting Apps to Self-Service Uninstall in Company portal using PowerShell

In 2307 Intune release, users now have the ability to uninstall apps themselves in Company Portal.

I’m not going to show you how to do that manually as that’s well covered by others like this one from Prajwal:

Instead, I am going to give you a quick way to switch as many apps as you like without having to click lots of buttons.

Introducing my latest script, available here:

Also available on the PowerShell gallery here:

Install-Script -Name set-apps-uninstall-true

As usual, you can send app reg details to automate it and if doing so, make sure to give the “-selected All” parameter or it will prompt for a selection.

When launching interactively, first it will ask if you want to set All apps, or just select the ones to configure:

If you select All it will change every app deployed.

Alternatively, pick Select and you will be presented with a grid-view output where you can select as many as you like. Then click ok and let it work its magic!

Et Voila:

2 thoughts on “Setting Apps to Self-Service Uninstall in Company portal using PowerShell”

  1. That is a big list of scopes, are they all actually required?

    Connect-ToGraph -Scopes “Policy.ReadWrite.ConditionalAccess, CloudPC.ReadWrite.All, DeviceManagementServiceConfig.ReadWrite.All, RoleAssignmentSchedule.ReadWrite.Directory, Domain.Read.All, Domain.ReadWrite.All, Directory.Read.All, Policy.ReadWrite.ConditionalAccess, DeviceManagementApps.ReadWrite.All, DeviceManagementConfiguration.ReadWrite.All, DeviceManagementManagedDevices.ReadWrite.All, openid, profile, email, offline_access, DeviceManagementRBAC.Read.All, DeviceManagementRBAC.ReadWrite.All”

    • I think I lifted and shifted from another script, these two should be enough:
      DeviceManagementApps.ReadWrite.All, DeviceManagementConfiguration.ReadWrite.All
      I’ll get it updated once I’ve tested 🙂


Leave a Comment