To calculate the total number of all Active directory accounts:
Get-ADUser -Filter {SamAccountName -like “*”} | Measure-Object
To calculate the total number of all Active directory accounts:
Get-ADUser -Filter {SamAccountName -like “*”} | Measure-Object