bwya77 / Master-User-Creator

GUI Application written in PowerShell to easily and quickly create, and configure Active Directory and/or Office 365 Users in a single window. Enable MFA, apply licenses, add to groups, and much more
https://www.thelazyadministrator.com/2019/04/01/master-user-creator-powershell-gui-software-v2-update/
390 stars 89 forks source link

Incorrect O365 License is Assigned #37

Open CStaas opened 5 years ago

CStaas commented 5 years ago

GUI finds Exchange Online licenses types, but after starting the user creation process, it fails to find the Exchange Online license and assigns a Business Essentials license instead. Licenses are through AppRiver, not sure is that may have anything to do with it.

Logs

Paul-Alpha commented 5 years ago

I am having the same issue as CStaas. However, looking through the files with my limited knowledge. There is this one line that is supposed to show the variable $licenses2add.

Add-Logs "LOG: We will be adding the licenses, $Licenses2Add"

Which is blank in both CStaas' logs as well as mine. Chasing that further I see in the O365LicenseSelection.psf that the Ok button is supposed to be adding values to $Global:Licenses2Add. Looking at Globals.ps1 I don't see that variable anywhere. So I am wondering if that is where the problem originates.

Much like CStaas, when it doesn't find the selected license I see that it drops back to the only other license it can find on the account which isn't a mailbox license so then the MCU hangs for 8mins waiting on a mailbox to create.

Thanks,