Link to home
Start Free TrialLog in
Avatar of Andre P
Andre PFlag for Canada

asked on

How can i produce a csv fie with username ,First name , Last Name , Full name and Email address from SBS 2008 ?

I know that its possible to do this with powershell but I cant run active directory module on SBS 2008 .
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

one way is to install
Active Directory Management Gateway Service or the Quest Powershell Tools
    64-bit version: Quest ActiveRolesManagementShellforActiveDirectoryx64 151.zip
    32-bit version: Quest ActiveRolesManagementShellforActiveDirectoryx86 151.zip
Installation walkthrough: http://www.powershelladmin.com/wiki/Quest_ActiveRoles_Management_Shell_Download
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

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
Take a look at the below.

https://www.experts-exchange.com/questions/28958687/Need-help-with-an-PowerShell-command-to-extract-user-attributes.html

You don't have to run it on the server.  It can be run from any PC joined to the domain.
Avatar of oBdA
oBdA

Sorry, forgot the mail.
Just add a new line 13 with 'mail' to the attributes retrieved.
Then in the last line, add the property to Select-Object, for example like this:
Get-ADSIUser | Select-Object samAccountName, displayName, givenName, sn, mail | Export-Csv -NoTypeInformation -Path C:\users_list.csv

Open in new window