From 2ec808a903174eb529beacb2ae51344863d7e1df Mon Sep 17 00:00:00 2001 From: Sriraman M S <45987684+msbemba@users.noreply.github.com> Date: Mon, 15 May 2023 21:40:42 +0530 Subject: [PATCH] Update view-licensed-and-unlicensed-users-with-microsoft-365-powershell.md Fied the SKU for E5 --- ...censed-and-unlicensed-users-with-microsoft-365-powershell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microsoft-365/enterprise/view-licensed-and-unlicensed-users-with-microsoft-365-powershell.md b/microsoft-365/enterprise/view-licensed-and-unlicensed-users-with-microsoft-365-powershell.md index cd11ee1dcdb..3d155237d28 100644 --- a/microsoft-365/enterprise/view-licensed-and-unlicensed-users-with-microsoft-365-powershell.md +++ b/microsoft-365/enterprise/view-licensed-and-unlicensed-users-with-microsoft-365-powershell.md @@ -81,7 +81,7 @@ Write-Host "Found $licensedUserCount licensed users." To view the list of all user accounts in your organization that have an E5 license assigned, run the following command: ```powershell -$e5Sku = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'SPE_E5' +$e5Sku = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'DEVELOPERPACK_E5' Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq $($e5sku.SkuId) )" -ConsistencyLevel eventual -CountVariable e5licensedUserCount -All