Does anyone know or have a script that will pull the following info from a users AD profile for all user accounts?<\/p>\n
User logon account name, user’s first and last name, description, and group memberships of each user<\/p>","upvoteCount":4,"answerCount":7,"datePublished":"2018-07-18T14:18:42.000Z","author":{"@type":"Person","name":"jeremydavenport","url":"https://community.spiceworks.com/u/jeremydavenport"},"suggestedAnswer":[{"@type":"Answer","text":"
Does anyone know or have a script that will pull the following info from a users AD profile for all user accounts?<\/p>\n
User logon account name, user’s first and last name, description, and group memberships of each user<\/p>","upvoteCount":4,"datePublished":"2018-07-18T14:18:42.000Z","url":"https://community.spiceworks.com/t/powershell-script/662699/1","author":{"@type":"Person","name":"jeremydavenport","url":"https://community.spiceworks.com/u/jeremydavenport"}},{"@type":"Answer","text":"
What have you tried so far? Where are you stuck?<\/p>\n
Import-Module ActiveDirectory\nget-command -Module ActiveDirectory\n<\/code><\/pre>\nAnd the command specifically you are looking for is ‘get-aduser’<\/p>\n
To export you can use ‘export-csv’<\/p>\n
get-aduser -filter $filter -properties $propertieshere |\nselect $properties_you_want_to _pick |\nexport-csv \"$env:userprofile\\desktop\\export.csv\" -NoTypeInformation\n<\/code><\/pre>","upvoteCount":3,"datePublished":"2018-07-18T14:22:19.000Z","url":"https://community.spiceworks.com/t/powershell-script/662699/2","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},{"@type":"Answer","text":"