![]() ![]() AccessToken $customers = Get-MsolPartnerContract -All $DeletedUserlist = foreach ( $customer in $customers ) Īnd that’s it! a somewhat longer blog than normal, with multiple scripts. Right-click Command Prompt and select Run as administrator. Select the Start button (lower-left corner). Right-click the Command Prompt icon, and select Run as administrator. Provisioning and Licensing Office 365 Accounts with PowerShell. ![]() Manage users in Office 365 using PowerShell. How to use Office 365 PowerShell to manage Microsoft Planner licenses. Select the Start button (lower-left corner). Remove licenses from user accounts with Office 365 PowerShell. AccessToken -MsGraphAccessToken $graphToken. If your version did include a product key, follow the steps under the 2016 tab. ![]() PSCredential ( $ApplicationId, $ApplicationSecret ) $aadGraphToken = New-PartnerAccessToken -ApplicationId $ApplicationId -Credential $credential -RefreshToken $refreshToken -Scopes '' -ServicePrincipal -Tenant $tenantID $graphToken = New-PartnerAccessToken -ApplicationId $ApplicationId -Credential $credential -RefreshToken $refreshToken -Scopes '' -ServicePrincipal -Tenant $tenantID Connect-MsolService -AdGraphAccessToken $aadGraphToken. Hi Dhiraj, You may refer to the steps in the support article below: Remove licenses from user accounts with Office 365 PowerShell. # $ApplicationId = 'XXXX-XXXX-XXXX-XXX-XXX' $ApplicationSecret = 'YourApplicationSecret' | Convertto-SecureString -AsPlainText -Force $TenantID = '' $RefreshToken = 'VeryLongRefreshToken' # $credential = New-Object System.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |