Link to home
Start Free TrialLog in
Avatar of dekhan
dekhan

asked on

For each users in list - 'using last name and first name' get login name in Active Directory

I am trying to do the following...I have a list of users with last name, first name. I would like like to query AD and get their logon name. THANKS!
Avatar of Stelian Stan
Stelian Stan
Flag of Canada image

Run this in powershell:
Get-ADUser -filter * -Properties Name | ft UserPrincipalName
ASKER CERTIFIED SOLUTION
Avatar of Stelian Stan
Stelian Stan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dekhan
dekhan

ASKER

Hi sorry I forgot to mentioned that client is running AD 2003
does not make a difference.  You can run PS Get-ADUser against AD 2003
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dekhan

ASKER

hi guys thanks for for the suggestions...however i am receiving the following error message from where ever i run the commands from:

WARNING: Error initializing default drive: 'Unable to find a default server with Active Directory Web Services
running.'.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial