Coming soon - Get a detailed view of why an account is flagged as spam!
view details
8
Getting attributes from a list of AD users
Post Body

I have a script that reads a text file with a list of users, then it cycles through each and grabs the information from AD, and exports it to a CSV. Except it stops at one

$users = Get-Content C:\Scripts\Volunteers.txt

Foreach($user in $users) {
Get-ADUser -Filter {sAMAccountName -eq $user}  -Properties * |
select DisplayName, ExtensionAttribute1 |
Export-Csv 'C:\Scripts\Volunteers.csv' -NoType

  }

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
Yes
Total Karma
66,614
Link Karma
30,920
Comment Karma
35,639
Profile updated: 6 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago