SharePoint PowerShell License mapping for standard and enterprise editions
Remove-SPUserLicenseMapping -Identity 57e2a70a-ec46-4cb9-a886-2e50ea1e69d
#User License for OfficeWebApps
$a = New-SPUserLicenseMapping -SecurityGroup "scu\SP-OfficeWebAppsEdit" –License OfficeWebAppsEdit
Add-SPUserLicenseMapping –Mapping $a
enable-SPUserLicensing ##must have this in there
Get-SPUserLicenseMapping
Add-PSSnapin Microsoft.SharePoint.PowerShell
$a = New-SPUserLicenseMapping -SecurityGroup "SCU\domain users" –License Standard
$a | Add-SPUserLicenseMapping
$a = New-SPUserLicenseMapping -SecurityGroup "SCU\SP-Enterprise" –License Enterprise
$a | Add-SPUserLicenseMapping
enable-SPUserLicensing ##must have this in there
Get-SPUserLicensing
Get-SPUserLicenseMapping