When viewing the licensing area of Adaxes, it shows the number of licences being used, and also the limit - does anyone know the PowerShell for retrieving the current limit?
Thanks
Further searching led me to this which appears to work;
$serviceSettingsContainerPath = $Context.GetWellKnownContainerPath("ServiceSettings")
$serviceSettingsContainer = $Context.BindToObject($serviceSettingsContainerPath)
# Get number of users allowed by license
$productInfo = $serviceSettingsContainer.ProductInfo
$TotalnumberOfLicensedUsersAllowed = $productInfo.AllowedEnabledUserAccounts