User Tools

Site Tools


how_to_change_licence_of_a_user

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_change_licence_of_a_user [2019/02/25 12:37]
admin
how_to_change_licence_of_a_user [2019/02/25 12:38] (current)
admin
Line 50: Line 50:
 //Or use this script :// //Or use this script ://
 <sxh ps> <sxh ps>
-$licensedetails = (Get-MsolUser -UserPrincipalName "user@<tenant>"​).Licenses+$licensedetails = (Get-MsolUser -UserPrincipalName "​user@tenant"​).Licenses
 $licensedetails.Count;​ $licensedetails.Count;​
 # If there'​s a license, show the details. # Otherwise, the output is blank. # If there'​s a license, show the details. # Otherwise, the output is blank.
how_to_change_licence_of_a_user.txt ยท Last modified: 2019/02/25 12:38 by admin