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
Next revision
Previous revision
how_to_change_licence_of_a_user [2017/06/28 11:21]
admin
how_to_change_licence_of_a_user [2019/02/25 12:38]
admin
Line 41: Line 41:
  
 <sxh ps> <sxh ps>
-$userLicenseTest = Get-MsolUser -UserPrincipalName "user@<tenant"​+$userLicenseTest = Get-MsolUser -UserPrincipalName "​user@tenant"​
 $userLicenseTest.IsLicensed $userLicenseTest.IsLicensed
 $userLicenseTest.Licenses.Count $userLicenseTest.Licenses.Count
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