Hi guys,
If you are starting to work with the new Office 365 PowerShell module to manage users you might have found a disturbing change in the license affectation process.
The DisabledPlans option, it is no more using the ServicePlan name but the ServicePlanId Guid. From an administrator point of view, this change is a little anoying. But guess what ? I just came out with this mapping function so you can translate the plans name to the right ServicePlanId directly from the pipeline.
[ps]Function Invoke-O365PlansGuidMapping {
Param(
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true
)]
[String[]]$PlansName
)
Begin {}
Process {
switch ($PlansName) {
‘FLOW_O365_P1’ {
‘0f9b09cb-62d1-4ff4-9129-43f4996f83f4’
}
‘FLOW_O365_P2’ {
‘76846ad7-7776-4c40-a281-a386362dd1b9’
}
‘FLOW_O365_P3’ {
‘07699545-9485-468e-95b6-2fca3738be01’
}
‘POWERAPPS_O365_P1′ {
’92f7a6f3-b89b-4bbd-8c30-809e6da5ad1c’
}
‘POWERAPPS_O365_P2’ {
‘c68f8d98-5534-41c8-bf36-22fa496fa792’
}
‘POWERAPPS_O365_P3’ {
‘9c0dab89-a30c-4117-86e7-97bda240acd2’
}
‘TEAMS1′ {
’57ff2da0-773e-42df-b2af-ffb7a2317929’
}
‘PROJECTWORKMANAGEMENT’ {
‘b737dad2-2f6c-4c65-90e3-ca563267e8b9’
}
‘SWAY’ {
‘a23b959c-7ce8-4e57-9140-b90eb88a9e97’
}
‘INTUNE_O365’ {
‘882e1d05-acd1-4ccb-8708-6ee03664b117’
}
‘INTUNE_A’ {
‘c1ec4a95-1f05-45b3-a911-aa3fa01094f5’
}
‘OFFICESUBSCRIPTION’ {
’43de0ff5-c92c-492b-9116-175376d08c38′
}
‘MCOSTANDARD’ {
‘0feaeb32-d00e-4d66-bd5a-43b5b83db82c’
}
‘EXCHANGE_S_ENTERPRISE’ {
‘efb87545-963c-4e0d-99df-69c6916d9eb0’
}
‘EXCHANGE_S_FOUNDATION’ {
‘113feb6c-3fe4-4440-bddc-54d774bf0318’
}
‘SHAREPOINTWAC’ {
‘e95bec33-7c88-4a70-8e19-b10bd9d0c014’
}
‘SHAREPOINTWAC_DEVELOPER’ {
‘527f7cdd-0e86-4c47-b879-f5fd357a3ac6’
}
‘YAMMER_ENTERPRISE’ {
‘7547a3fe-08ee-4ccb-b430-5077c5041653’
}
‘SHAREPOINTSTANDARD’ {
‘c7699d2e-19aa-44de-8edf-1736da088ca1’
}
‘SHAREPOINTENTERPRISE’ {
‘5dbe027f-2339-4123-9542-606e4d348a72’
}
‘SHAREPOINT_S_DEVELOPER’ {
‘a361d6e2-509e-4e25-a8ad-950060064ef4’
}
‘MFA_PREMIUM’ {
‘8a256a2b-b617-496d-b51b-e76466e88db0’
}
‘AAD_PREMIUM’ {
‘41781fb2-bc02-4b7c-bd55-b576c07bb09d’
}
‘AAD_PREMIUM_P2’ {
‘eec0eb4f-6444-4f95-aba0-50c24d67f998’
}
‘BI_AZURE_P0’ {
‘2049e525-b859-401b-b2a0-e0a31c4b1fe4’
}
‘BI_AZURE_P2′ {
’70d33638-9c74-4d01-bfd3-562de28bd4ba’
}
‘RMS_S_PREMIUM’ {
‘6c57d4b6-3b23-47a5-9bc9-69f17b4947b3’
}
‘RMS_S_ENTERPRISE’ {
‘bea4c11e-220a-4e6d-8eb8-8ea15d019f90’
}
‘VISIO_CLIENT_SUBSCRIPTION’ {
‘663a804f-1c30-4ff0-9915-9db84f0d1cea’
}
‘THREAT_INTELLIGENCE’ {
‘8e0c0a52-6a6c-4d40-8370-dd62790dcd70’
}
‘Deskless’ {
‘8c7d2df8-86f0-4902-b2ed-a0458298f3b3’
}
‘ADALLOM_S_O365’ {
‘8c098270-9dd4-4350-9b30-ba4703f3b36b’
}
‘EQUIVIO_ANALYTICS’ {
‘4de31727-a228-4ec3-a5bf-8e45b5ca48cc’
}
‘LOCKBOX_ENTERPRISE’ {
‘9f431833-0334-42de-a7dc-70aa40db46db’
}
‘EXCHANGE_ANALYTICS’ {
’34c0d7a0-a70f-4668-9238-47f9fc208882′
}
‘ATP_ENTERPRISE’ {
‘f20fedf3-f3c3-43c3-8267-2bfdd51c0939’
}
‘MCOEV’ {
‘4828c8ec-dc2e-4779-b502-87ac9ce28ab7’
}
‘MCOMEETADV’ {
‘3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40’
}
}
}
End {}
}
[/ps]