mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 16:35:19 +00:00
Update O365UserLicenseReport.ps1
This commit is contained in:
parent
6b5d4cee87
commit
a1ed272e1e
@ -13,6 +13,10 @@ Function Get_UsersLicenseInfo
|
|||||||
$FriendlyNameOfLicensePlanWithService=""
|
$FriendlyNameOfLicensePlanWithService=""
|
||||||
$upn=$_.userprincipalname
|
$upn=$_.userprincipalname
|
||||||
$Country=$_.Country
|
$Country=$_.Country
|
||||||
|
if($Country -eq "")
|
||||||
|
{
|
||||||
|
$Country="-"
|
||||||
|
}
|
||||||
Write-Progress -Activity "`n Exported user count:$LicensedUserCount "`n"Currently Processing:$upn"
|
Write-Progress -Activity "`n Exported user count:$LicensedUserCount "`n"Currently Processing:$upn"
|
||||||
#Get all asssigned SKU for current user
|
#Get all asssigned SKU for current user
|
||||||
$Skus=$_.licenses.accountSKUId
|
$Skus=$_.licenses.accountSKUId
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user