Configure Moss using psconfig.exe and stsadm

If you have read my post on configuring moss to use a database in an untrusted domain adn have tried it out, you will have noticed that the configuration of MOSS is not yet complete. Actually when running the Config wizard you can see 9 steps being performed. If you used psconfig to create or connect your server to a database, then there are only 3 steps performed.

So here are all the commands for setting up your MOSS using psconfig. The information is based on a blog article I found from Alpesh Nakar

Of course these commands will not work if you are not in c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN or have not added this path in your environment variables yet.

psconfig.exe -cmd configdb -create -server <SQL Server name> -database <database name> -user <AD user account> -password <AD user password>
 ( if you are adding an additional server to a farm, replace -create by -connect and stop after the command psconfig -cmd installfeatures)

psconfig -cmd helpcollections -installall

psconfig -cmd secureresources

psconfig -cmd services -install

psconfig -cmd installfeatures 

psconfig -cmd adminvs -provision -port 8000 -windowsauthprovider onlyusentlm

psconfig -cmd applicationcontent -install

Now Alpesh also gives you the stsadm commands to go and finish up the rest of the Moss configuration:

stsadm -o osearch -action start -role indexquery -farmcontactemail [email protected] -farmserviceaccount domain\username -farmservicepassword password -defaultindexlocation “C:\Program Files\Microsoft Office Servers\12.0\Data\Applications”

This starts your Office Search Services.

stsadm -o extendvs -url http://%computername%:8100 -ownerlogin domain\username -owneremail [email protected] -exclusivelyusentlm -apidname “OurSSPon8100″ -apcreatenew -apidtype configurableid -apidlogin domain\username -apidpwd password

stsadm -o extendvs -url http://%computername%:8200 -ownerlogin domain\username -owneremail [email protected] -exclusivelyusentlm -apidname “MySiteson8200″ -apcreatenew -apidtype configurableid -apidlogin domain\username -apidpwd password

stsadm -o createssp -title “Shared Service Provider” -url http://%computername%::8100 -mysiteurl http://%computername%:8200 -indexserver %COMPUTERNAME% -indexlocation “%Programfiles%\Microsoft Office Servers\12.0\Data\Applications” -ssplogin domain\username -ssppassword password

stsadm -o extendvs -url http://%computername%:80 -ownerlogin domain\username -owneremail [email protected] -exclusivelyusentlm -apidname “SiteCollectionon80″ -sitetemplate SPSPortal -apidtype configurableid -apidlogin domain\username -apidpwd password

This will setup your webapps for shared services, my sites, create shared service provider and create your site collection as well.

That’s it.

3 thoughts on “Configure Moss using psconfig.exe and stsadm

  1. Hi,

    You seem to know a lot about MOSS 2007. A have a one question concering backups not really related to psconfig.exe, but ofcourse to stsadm. My MOSS 2007 server was corrupted I have taken backups of the databases. How can I restore them to another server. My restorin always seems to stop in somepoint or should I say it stays in the same point for hours. Could you help me with my problem?

    t: Lauri Vaittinen, Project Engineer, Finland [email protected]

  2. sir ,

      At first time i installed moss2007 server, after immediate intalling it will come with Inter explorer for coming default page of server but asking username and password ,for that how can i enter.

     please send my request to my id====

                  [email protected]


    I have been beating my head with the GUI for the last 5-6 hours this article saved me a lot of headache and having to ask my boss to call in consultants to finish my job. THANK YOU!

Leave a Reply

Your email address will not be published. Required fields are marked *