• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

Export from Server 2008 to import to Server 2008

Hi all,


Server 2008 R2 with around 75user accounts.


I have a new Server 2008 R2 server and I wish to import the user names only. Not worried about keeping the passwords. Just first name, surname and username

Can some one advise of the best way to do this?
0
unrealone1
Asked:
unrealone1
3 Solutions
 
Neil RussellTechnical Development LeadCommented:
Are you talking about active directory?
Is this to a NEW Active Directory domain?
0
 
unrealone1Author Commented:
Yes from AD on a Server 2008 R2 server to AD on another 2008 R2 server.

domain MyCompany.Local is the same.
0
 
Neil RussellTechnical Development LeadCommented:
If your on about LOCAL accounts then see here, is simple :D

Local User and Group Migration Guide
http://technet.microsoft.com/en-us/library/dd379531(v=ws.10).aspx
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Neil RussellTechnical Development LeadCommented:
If it is the SAME domain then you dont have to do anything.

You create your new server, join it to the domain and then DCPROMO it to a DC. It will replicate all users between and you will have 2 AD servers,
0
 
unrealone1Author Commented:
This new server is being built offsite. It won't be touching the old server. All I want to do is export the user accounts to a csv, so I can then import them.
0
 
R. Andrew KoffronCommented:
to export a csv file just open the users and computers, choose the OU with your users in in and go to the view menu>add/remove columns create the veiw you want and export to a text file.  than you just need to import to excel and change the tab delimited to comma delimitated  .
0
 
Adam BrownSr Solutions ArchitectCommented:
Powershell's the easy way. Using the 2008 R2 Active Directory Module for Powershell:

On the first server:
get-aduser -filter *| select samaccountname,givenname,surname | export-csv <filename>

On the second server:
$users = import-csv <filename>
foreach ($user in $users)
{new-aduser -samaccountname $user.samaccountname -givenname $user.givenname -surname $user.surname -accountpassword (ConvertTo-SecureString -AsPlainText "<password you want>" -Force)}
0
 
unrealone1Author Commented:
Ran the first command to export. This appeared to work ok.


On the new server using the Powershell Active Directory.

I run this command:

$users = import-csv thefileiexported
foreach ($user in $users)
{new-aduser -samaccountname $user.samaccountname -givenname $user.givenname -surname $user.surname -accountpassword (ConvertTo-SecureString -AsPlainText "mypa55word" -Force)}

and then I get

>> 

(I press enter)

Then I get

cmdlet New-AdUser at command pipelane position 1



Please advise?
0
 
JerseyGiantCommented:
did you ever get an answer?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now