Get-ADUser

# This will filter out service principal name
# It will display AD users
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties ServicePrincipalName

Last updated