Forum Discussion
Simon Shaw
May 24, 2021Copper Contributor
License prefix format
I am trying to upgrade from the MSOnline powershell module to the MicrosoftTeams module.
Previously, the Get-MsolAccountSku returned the AccountSkuId is in the format
tenantname:licensename e.g. contoso:ENTERPRISEPACK
In the Teams module when I run the Get-AzureADSubscribedSku command, the closest thing that I can see to this format is the objectId which is in the format
tenantGuid:skuGuid e.g. 44cbfb1e-xxxx-xxxx-xxxx-xxxxxxxxxxxx_6fd2c87f-b296-42f0-b197-1e91e994b900
Is there a convenient way to convert from the new format to the old format using powershell?
Thanks in advance,
Simon
- teams1535
Microsoft
Hi Simon Shaw,
Get-AzureADSubscribedSku will provide all sku details.
if you want per user basis.
$a = Get-MsolUser -UserPrincipalName $UPN | select -ExpandProperty licenses
$b = $a.AccountSkuId- Simon ShawCopper ContributorIsn't the Get-MsolUser cmdlet part of the MSOnline powershell module which was end of life 3 months ago?