Can you help me migrate users from a standalone Windows 2003 server to a new Active Directory list?

62180 pts.
Active Directory
Microsoft Windows
Microsoft Windows Server 2003
Windows client administration and maintenance
I need your help please. Currently we have one standalone server (Windows 2003) without Active Directory. We have around 1,000 users in there. Now we want to migrate these users into a new Windows 2003 server Active Directory list. Is there a way for me to simply save from the standalone server and transfer that to the new Active Directory server. I just need the users -- that's all. I'm not worried about the passwords. Thanks alot!

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hello WinComputingATE,
hereafter a couple of tips that may help you in getting this things done.

1st script creates a file called MyUsers.txt containing the local usernames.

set objFSO=CreateObject("Scripting.FileSystemObject")
set objFile=objFSO.CreateTextFile("MyUsers.txt",TRUE)
Set objNetwork = CreateObject("Wscript.Network")
strComputer = objNetwork.ComputerName
Set colAccounts = GetObject("WinNT://" & strComputer & "")
colAccounts.Filter = Array("user")
For Each objUser In colAccounts
objFile.WriteLine objUser.Name
MsgBox("Finished exporting users",vbOKOnly+vbInformation,"Exported Users")

2nd script: Reads data from the text file and adds them to the domain.

Const ForReading=1
Const strPass = "initialpassword"
Set objRoot = GetObject("LDAP://RootDSE")
strDomainPath = objRoot.Get("DefaultNamingContext")

set objFSO=CreateObject("Scripting.FileSystemObject")
set objFile=objFSO.OpenTextFile(strFile,ForReading)
do While objFile.AtEndOfStream<>True
strEntry = objFile.ReadLine
CreateUser strEntry

Sub CreateUser(strUser)
set objContainer=GetObject("LDAP://" & strContainer & "," & strDomainPath)
set objUser=objContainer.Create ("User","cn=" & strUser)
objuser.Put "samAccountName",strUser
objUser.Put "PasswordExpired", 1
End Sub

I hope this helps.

P.S. I suggest you to first create a test environment where you can try this before going live with this solution.
To build the test-lab you can use the VMWare Server and VMWare Converter.
With the converter you can create a virtual machine that is the exact copy of your running server, then you mount this virtual machine in VMWare Server and perform your tests.

Discuss This Question:  

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: