Which accounts are excluded from the license count? I understand you can exclude users, by OU possibly. I'm more interested in non OU folders (CN's) in AD such as "Microsoft Exchange Systems Objects" such as Monitoring Mailboxes. Also like the Users CN which hosts certain service accounts for $domains. I just want to ensure this could be excluded if they were counted.
Softerra Adaxes is licensed in packages based on the number of enabled and not expired user accounts in all the managed Active Directory domains. If you do not want to manage specific accounts (e.g. service accounts) using Adaxes, you need to add them to the list of unmanaged accounts. Unmanaged user accounts will not be displayed in Adaxes environment and will be ignored during license validation. For information on how to add users to the list of unmanaged accounts, please, have a look at the following help article: https://www.adaxes.com/help/?HowDoI.ManageService.AddUsersToUnmanagedAccounts.html.
Do you have a tool or script that you would use to give an estimate of users that would be licensed. I understand you don't count Expired accounts but wanted a good idea of what our domain would return according to your expectations.
The following PowerShell script outputs the number of all users that are enabled and not expired:
$credentials = Get-Credential
$currentDateFileTime = (Get-Date).ToFileTimeUtc()
$users = Get-ADObject -Credential $credentials -LDAPFilter "(&(sAMAccountType=805306368)(!(userAccountControl:1.2.840.1135126.96.36.1993:=2))(|(!(accountExpires<=$currentDateFileTime))(accountExpires=0)))" -SearchScope Subtree
Write-Host "Total number of enabled and not expired user accounts in domain:" $users.Length
What happens during license validation?
During a license validation Adaxes checks whether the license file can be used with the installed service version and whether the number of users that are active, not expired and not added to the list of unmanaged accounts is not exceeding the number allowed by the license.
What happens if you go over license count?
You will be notified about the license violation and you will have 30 days to correct the violation. After the 30-days period the service will be stopped.