I am looking for a PowerShell script to get the DN of a user from the users employeeID.
I have tried several Ldap Filters:
get-qaduser -LdapFilter "(&(!employeeID=*))" -IncludedProperties employeeID
This returns all users even those with a null employeeID.
I have tried variations by adding and removing the & and the !.
Some of these do not return errors, but they also do not return any data either.
Need a little help