?
Solved

help to write script to pull info from AD

Posted on 2013-01-10
1
Medium Priority
?
448 Views
Last Modified: 2013-01-15
Hi Experts,

I am currently implementing a new asset / configuration management system at my company.   We will be using this tool to charge back organization for hardware and software.  Until this tool is fully functioning we need to use Active Directory to pull the information we will need for finance and I want to know if you could help me to write a powershell script to pull this information from AD. All my DCs are Windows 2008 R2 VMs, domain and forest functional level is Windows 2008 R2

I am looking to pull the following items for AD.

1.      Creation date
2.      Active / Not Active  ( I am really only looking for Active)
3.      Userid  (the name of the AD Account)
4.      First and Last name
5.      Cost Centre
6.      Start and End date
7.      Employee or Contractor  (Need to know if either)
0
Comment
Question by:Jerry Seinfield
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
Subsun earned 1500 total points
ID: 38764775
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question