Thursday, December 2, 2010

STSADM import hangs on Importing User when using -includeusersecurity

Part of what I'm working on right now is getting a test SharePoint 2010 environment up and running for some of our old WSS 3.0 sites. This involves taking a backup of the site, importing it into a clean WSS 3.0 install, and then upgrading the WSS_Content DB.

After running the following command:

stsadm -o export -url http://localhost/aus/sims -filename C:\SIMSBackup\SIMS.cmp -includeusersecurity

copying over the backup file to the test server, and then running:

stsadm -o import -url http://localhost/aus/sims -filename C:\SIMS\SIMS.cmp -includeusersecurity

The import would start to hang after importing a few hundred users (our company has 5000+ users). A little trick I found was that if I disconnected the machine from the network, the import would work fine, and fast!

The reason why? Each time you import a new user into WSS, it will query your Domain Controller (Active Directory) to update information about that user such as email address, name, etc. But if you keep querying AD this way, it will eventually block you out and not respond to your requests.

If you disconnect the machine from the network and then run the import with -includeusersecurity, it will work without any problem.

No comments:

Post a Comment