Forum Discussion
script shared mailbox with license
- Nov 20, 2022
No problem at all! Manflo1603
Feel free to mark my response and an accepted solution if you feel that I helped out in solving your issues 🙂
If there is anything else I can help with just let me know! Have a great weekend
Kind regards
Oliwer
You could modify the IF Statement by adding an "-And" switch i that looks for a specific SKU of the license that you want to look for. And also by removing the "!"
So with the SKU Value that Vasil posted you could change the IF statement to something like this
if ($infoUser.AssignedLicenses.Count -gt 0 -And $InfoUser.AssignedPlans.ServicePlanID -eq "cbdc14ab-d96c-4c30-b9f4-6ada7cdc1d46")
- Manflo1603Nov 08, 2022Brass ContributorBonjour,
merci je vais tester cela et vous faire un retour- Manflo1603Nov 08, 2022Brass Contributor
Rebonjour, quand je fais le script je n'ai pas de réponse sortie
Par contre si je lance le miens j'ai bien une sortie de réponse
- oliwer_sundgrenNov 08, 2022Iron Contributor
Hello again Manflo1603
Sorry I misstyped my first reply.
Change the IF statement to this and it should workif ($infoUser.AssignedLicenses.Count -gt 0 -And $InfoUser.AssignedLicenses.SkuID -Like "cbdc14ab-d96c-4c30-b9f4-6ada7cdc1d46")