0

I am new to the PowerShell. I have a csv file which has info about the login ids for a set of users. I need a PowerShell script that can take input from this csv file and query AD for custom attribute 5, last name and first name. Thank you all for your assistance.

Thanks,

1
  • I tried to write a code, however when I ran it, it gave me all the non-required info instead of just the info needed. I turned off the option of default values too. However, making it short here. I do not see append option in my power gui. is there a way to fix that? If this is fixed then I am all set. Thanks a lot guys for your help. Commented Feb 4, 2014 at 19:25

1 Answer 1

1
  1. Learn basic PowerShell. Ex. read PowerShell Tutorial for beginners. Chapter-menu on the right side, and skip the last ActiveDirectory part. You should rather use the official Active Directory module that's installed on DCs and available for servers and clients(install RSAT), or Quest ActiveRoles module.

  2. Import data using Import-CSV.

  3. Query AD using Active Directory module.. Get-ADUser.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.