Skip to content

Commit 2ec808a

Browse files
authored
Update view-licensed-and-unlicensed-users-with-microsoft-365-powershell.md
Fied the SKU for E5
1 parent ad19769 commit 2ec808a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

microsoft-365/enterprise/view-licensed-and-unlicensed-users-with-microsoft-365-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Write-Host "Found $licensedUserCount licensed users."
8181
To view the list of all user accounts in your organization that have an E5 license assigned, run the following command:
8282

8383
```powershell
84-
$e5Sku = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'SPE_E5'
84+
$e5Sku = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'DEVELOPERPACK_E5'
8585
8686
Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq $($e5sku.SkuId) )" -ConsistencyLevel eventual -CountVariable e5licensedUserCount -All
8787

0 commit comments

Comments
 (0)