#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