Changing Toast notifications to Hide All when using -RequiredFor AllUsers #151
demonjrules
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
If I start setting the toast, would there be other “settings” you might want to specify as well? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First off, I love the app. I used to package apps using PowerShell and Chocolatey but only new users would get the latest version but it would never update the apps for people that have had the apps installed for a few months. Keep up the great work!
I could be wrong but I did not see anywhere that allowed you to modify the toast notifications for All Users since I like to push apps silently. Of course, this could be done manually but I am lazy and I may forget in the future.
I wrote this simple script that utilized the existing token (with Get-WtToken) and then used Graph to modify the toast setting for an app that was already deployed. This only changes to "hide all toast notifications" when the app was deployed with "-RequiredFor AllUsers" but you can certainly rewrite it to match your needs https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.devices.corporatemanagement/set-mgdeviceappmanagementmobileapp?view=graph-powershell-1.0
Beta Was this translation helpful? Give feedback.
All reactions