Hi there
This short article it’s to show how to track if pilot users got their licenses assigned properly.
The following script will pull out all users with TEAMS enabled for them.
- saves on TEAMS.txt (current directory)
- shows on screen (gridview format)
Connect-msolservice
$all = Get-MsolUser -All
$teamsUsers = foreach ($user in $all) {
$serviceStatuses = @($user.Licenses.ServiceStatus)
$teamsPlans = $serviceStatuses.Where({$_.ServicePlan.ServiceName -clike "*TEAMS*"})
if ($true -in $teamsPlans.ForEach({$_.ProvisioningStatus -like "*Success*"})) {
$user
}
}
$teamsUsers | Out-File TEAMS.txt
$teamsUsers | Out-GridView
References
Check my Github repository
Thanks,