Skip to content

Commit 8fc0543

Browse files
committed
Updated licensing-group-advanced.md wih MgGraph cmdlets
1 parent b80503a commit 8fc0543

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/active-directory/enterprise-users/licensing-group-advanced.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ Here's an example of what this process may look like:
102102
## Use PowerShell to see who has inherited and direct licenses
103103
You can use a PowerShell script to check if users have a license assigned directly or inherited from a group.
104104

105-
1. Run the `connect-msolservice` cmdlet to authenticate and connect to your organization.
105+
1. Run the `Connect-MgGraph -Scopes "Organization.Read.All"` cmdlet to authenticate and connect to your organization using Microsoft Graph.
106106

107-
2. `Get-MsolAccountSku` can be used to discover all provisioned product licenses in the Azure AD organization.
107+
2. `Get-MgSubscribedSku -All | Select-Object skuid -ExpandProperty serviceplans | select serviceplanid, serviceplanname` can be used to discover all provisioned product licenses in the Azure AD organization.
108108

109-
![Screenshot of the Get-Msolaccountsku cmdlet](./media/licensing-group-advanced/get-msolaccountsku-cmdlet.png)
109+
![Screenshot of the Get-Msolaccountsku cmdlet](./media/licensing-group-advanced/get-mgsubscribedsku-cmdlet.png)
110110

111-
3. Use the *AccountSkuId* value for the license you're interested in with [this PowerShell script](licensing-ps-examples.md#check-if-user-license-is-assigned-directly-or-inherited-from-a-group). A list populates the users who have this license and information about how the license is assigned.
111+
3. Use the *ServicePlanId* value for the license you're interested in with [this PowerShell script](licensing-ps-examples.md#check-if-user-license-is-assigned-directly-or-inherited-from-a-group). A list populates the users who have this license and information about how the license is assigned.
112112

113113
## Use Audit logs to monitor group-based licensing activity
114114

146 KB
Loading

0 commit comments

Comments
 (0)