Avatar of ukwebdzine
ukwebdzine
 asked on

Moving Sharepoint WSS3.0 from old domain to new domain

Hello experts!

I have  a virtual machine that was running sharepoint wss3.0 on a win2003 std guest.
This sharepoint site was in a domain that no longer exists  called domain A (so we dont get confused) it had an ip address of 192.168.0.22

I'm trying to get the sharepoint site to work in a new domain called domain B (hopefully on 192.168.1.22)

I've setup a new domain and installed vmware workstation 9 on a physical win 2008 r2 server.
I've then managed to start the virtual machine on this host.
I can login to the guest using the old domain A username and password.

whats the best procedure to get sharepoint accessible in the new domain B?
and how do i link it to the new AD in Domain B?
VMwareMicrosoft SharePointMicrosoft Server OS

Avatar of undefined
Last Comment
ukwebdzine

8/22/2022 - Mon
ukwebdzine

ASKER
I might have found the answer!

http://sharepointapplied.com/2009/02/04/move-sharepoint-to-a-new-domain/

Any tips and hints when performing a sharepoint domain move?
ukwebdzine

ASKER
the previous link needs you to setup sharepoint from scratch  and then migrate the data.

Is there a way to do it like move to workgroup, then add to new domain and connect ? or am i dreaming?
Justin Smith

I assume everything, including SQL is on this machine?  

You could either create a new farm on a server in the new domain, and migrate your databases over.

Or you could disjoin the current server from the current domain, and add it to the new domain.  This would require that you go in and adjust all your SQL level security and SharePoint service accounts to be accounts in the new domain.  

Either way, lots of work ahead of you.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ukwebdzine

ASKER
Yes Everything is on this virtual machine

I've never installed sharepoint and my SQL knowledge is zero.  
The new domain is already setup with all the same usernames as the old domain. so if I get some SQL techie to help then this should be the easiest route?
ASKER CERTIFIED SOLUTION
Justin Smith

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ukwebdzine

ASKER
Thanks ACH1LLES working on that guide right now
ukwebdzine

ASKER
I'm at this stage in the above guide

1. stsadm -o updatefarmcredentials -userlogin CONTOSO\ServiceAccount -password NewPassword

I understand that I change CONTOSO\ServiceAcount to MYDOMAIN\MyNewServiceAccount
but what is the password NewPassword refering too?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Justin Smith

The password for your service account
ukwebdzine

ASKER
aha this worked

stsadm -o updatefarmcredentials -userlogin MYDOMAIN\MyServiceAccount -password MypasswordforMyServiceAccount

but I got this msg

To ensure that all credential caches in IIS have updated, you must run the comma
nd "IISRESET /NOFORCE" on all servers in the farm.  This should be done after all credential updates have been completed.
Operation completed successfully.

looking good?
Justin Smith

yes.  So thus far you've changed the server's domain, updated SQL permissions, and updated service accounts in SharePoint?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ukwebdzine

ASKER
Yes, but . . . . .

stsadm.exe -o spsearch -farmcontentaccessaccount MYDOMAIN\MyServiceAccount –farmcontentaccesspassword MyServiceAccounPassword

gets a command line error????
Justin Smith

Don't worry about that one, you can change it in Central Admin.
ukwebdzine

ASKER
phew!!

skipping step 5.5 and 5.6 as Im using wss3.0

onto Step 6: Confirm Site loads:
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ukwebdzine

ASKER
I can open the Sharepoint 3.0 central administration webpage no problem

http://mysharepoint:4527/default.aspx


but  when going to http://mysharepoint/

I get

Go back to site  
Error: Access Denied
 
 Current User  
You are currently signed in as:  MYDOMAIN\administrator  
 
Sign in as a different user
Request access
ukwebdzine

ASKER
if I click sign in as a different user and use MYDOMAIN\MyServiceAccount I can get to the sharepoint site hooraaaahh!!!!1
ukwebdzine

ASKER
Step 7: Migrating User Accounts:

Warning: Before you begin ensure that we have migrated all the AD user accounts to the new domain


This cannot be achieved as the old domain and AD is long gone

I have setup all the old domain usernames in the new domain with same passwords and usernames.

will this get me through step 7??
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Justin Smith

Go ahead with STep 7, it doesn't matter if the old domain is gone.  This command is change account names in the content database, it doesn't even contact the old domain.

If you need to run it for lots of users, this blog can help:  http://blogs.msdn.com/b/sowmyancs/archive/2012/01/07/migrate-users-groups-powershell-script.aspx?PageIndex=2
ukwebdzine

ASKER
ok

I'm working through the 30 users I need sorting ASAP

There are old users in the old domain and in sharepoint that have left the company.

Do I need to recreate their accounts in the new domain and perform:-

stsadm -o migrateuser -oldlogin DOMAIN\user -newlogin DOMAIN\user -ignoresidhistory

for them to tie in their posts and reports??
Justin Smith

If they no longer exist, I wouldn't worry about it.  THe content will still be there.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ukwebdzine

ASKER
ok thanks

Just setting up groups in AD and then I'll execute

stsadm –o migrategroup –oldlogin Domain\group –newlogin Domain\group

this is worth more than 500 points !!
Justin Smith

LOL, I hope it works out for you.  If you ever need remote support, I'm available for hire.


______________________________________________________________________
Follow me on Twitter!  @justinsmith317
ukwebdzine

ASKER
all the group i set up in new AD Domain match the ones in Sharepoint but the

stsadm –o migrategroup –oldlogin MyDomain\group –newlogin MyNewDomain\group

gets a command line error
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ukwebdzine

ASKER
Also is there anything i need to do in central admin to finalise this?
Justin Smith

What is the command line error?  This command didn't come around till the August 2009 CU.  Possibly you don't have this installed.  In Central Admin go to Operations - Servers in Farm and tell me the Farm Build Number.

In Central Admin you need to verify all your service accounts and web app pool accounts are running as accounts in the new domain.  This is in Central Admin - Operations - Service Accounts.  You should also go to Central Admin - Operations - Services on Server, click on the Search Service, and assure all is well there.
ukwebdzine

ASKER
Farm build number = 12.0.0.6421


In central admin - Operations -service accounts

I have a  dot  in  Windows service. but nothing to pick from in the drop down box

In web application pool  I can select  'windows sharepoint services web application' from the dropdown box

and 'application pool' drop box I can pick sharepoint -80

then select an account
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ukwebdzine

ASKER
i can access the site from a user on the new domain

the search facility brings up no items for things i know are there

in central admin the Service Account is set to the new account I used in the guide MYDOMAIN\MyNewAccount

in central admin the Content Access Account is set to the new account I used in the guide MYDOMAIN\MyNewAccount

the search database uses windows authentications and the database server and database name look good too



* going back to the group migration error - it doesnt give any error just says Commandline error. then gives every usage of stsadm.exe under the sun!
Justin Smith

Leave search to last. Verify that your users can access their stuff first.
ukwebdzine

ASKER
they can access everything :)

just no search results
Your help has saved me hundreds of hours of internet surfing.
fblack61
ukwebdzine

ASKER
time to head home now as I've been working for 13 hours

Will be back tomorrow  


many thanks for your awesome help ACH1LLES  \o/\O/\o/
Justin Smith

Run crawl. Stsadm -o spsearch -action startfullcrawl
Justin Smith

Correction:        Stsadm -o spsearch -action fullcrawlstart


____________________________________________________________________
Follow me on Twitter!  @justinsmith317
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Justin Smith

Yeah you are on SP2, which doesn't have the migrategroup command.  You'd need at least the August 09 CU, or you could just deploy SP3.



__________________________________________________________________
Follow me on Twitter!  @justinsmith317
ukwebdzine

ASKER
many thanks for your excellent knowledge and prompt replies.