Mar 09 2022 02:07 AM
Hello experts,
i created a ps-skript for creating new users in our organization. I use this command for adding existend licenses:
New-MsolUser -DisplayName $FullName -FirstName $Name -LastName $Surname -UserPrincipalName $FitnessloftUser -UsageLocation DE -LicenseAssignment fitloft:O365_BUSINESS_ESSENTIALS
When they are no more licenses available it is obviously not possible to add the license, so i have to buy the licenses in the O365 Admin Panel manually. I want to add a condition which should buy a license automatically when they are no license available. I searched a lot and most of the answers were that this is not possible through Powershell. Maybe someone tried it before and can tell if this is possible or not.
Thank your very much.
Greetings,
Mariano
Mar 12 2022 03:27 AM
Mar 29 2022 02:30 PM
Mar 30 2022 01:21 AM
Mar 30 2022 02:59 AM