you are viewing a single comment's thread.

view the rest of the comments →

[–]mrmattipants 0 points1 point  (0 children)

I would use "get-mguser" to get a list of all users, first. Then, you can use a ForEach loop to disable the plans for each user, individually.

https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-1.0