Hi,
The question in the topic got help, but to address the bigger question, how
to script the installation / configuration of MOSS.
(Disclaimer: the following is not complete, supported or otherwise official.
It is what I used in testing and I am providing as an example of things that
can be done in configuration. The following does not adhere to the best
security practices. All use at your own risk etc. I am also
assuming that whoever finds this interesting already has basic working
knowledge of the MOSS administration and I don't explain every detail. This
is not official documentation)
1) Binary install. Using the config.xml you can automate the binary
installation to happen quietly from command lind. See
http://technet2.microsoft.com/Office/en-us/library/003e5316-1018-4949-ac54-42fa12c5e51e1033.mspx?mfr=truefor details. Not addressed by the example below.
2) Running PSC. Trick #1: run the PSC manually once in the situation you
want to automate. Look into the PSConfig log and search for "commands
selected".
The list of commands requires often some tweaking (e.g. don't pass
initialize and finalize commands).
3) (if creating farm for the first time), run provisioning tasks. Mainly
collection of stsadm commands to start search, create web apps and create
SSP, and the portal site.
@echo off
if exist "%commonprogramfiles%\microsoft shared\web server
extensions\12\bin" cd /d "%commonprogramfiles%\microsoft shared\web server
extensions\12\bin"
echo Starting PSC Setup with server %1, db %2, user %3 and pwd *******
psconfig -cmd configdb -create -server %1 -database %2 -user %3 -password %4
if not errorlevel 0 goto errhnd
psconfig -cmd helpcollections -installall
if not errorlevel 0 goto errhnd
psconfig -cmd secureresources
if not errorlevel 0 goto errhnd
psconfig -cmd services -install
if not errorlevel 0 goto errhnd
psconfig -cmd installfeatures
if not errorlevel 0 goto errhnd
psconfig -cmd adminvs -provision -port 8000 -windowsauthprovider onlyusentlm
if not errorlevel 0 goto errhnd
psconfig -cmd applicationcontent install
echo\
:SetupServices
echo Starting search
STSADM.EXE -o osearch -action start -role indexquery -farmcontactemail
a@b -farmserviceaccount %3 -farmservicepassword %4 -defaultindexlocation
d:\temp
if not errorlevel 0 goto errhnd
:CreateSSP
echo Creating webapps for SSP
stsadm -o extendvs -url
http://%COMPUTERNAME%:8080 -ownerlogin
%3 -owneremail
a@b.com -databasename
WSS_Content_SSPAdmin%2 -exclusivelyusentlm -description
sspApp(8080) -apidname sspApp(8080) -apcreatenew -apidtype
configurableid -apidlogin %3 -apidpwd %4
if not errorlevel 0 goto errhnd
stsadm -o extendvs -url
http://%COMPUTERNAME%:8081 -ownerlogin
%3 -owneremail
a@b.com -databasename
WSS_Content_People%2 -exclusivelyusentlm -description pplApp(%2) -apidname
pplApp(%2) -apcreatenew -apidtype configurableid -apidlogin %3 -apidpwd %4
if not errorlevel 0 goto errhnd
echo Creating SSP
stsadm.exe -o createssp -title newsspon8080 -url
http://%COMPUTERNAME%:8080 -mysiteurl
http://%COMPUTERNAME%:8081 -indexserver %COMPUTERNAME% -indexlocation
"%Programfiles%\Microsoft Office Servers\12.0\Data\Applications" -ssplogin
%3 -ssppassword %4 -sspdatabasename SSPDB%2 -searchdatabasename SEARCHDB%2
if not errorlevel 0 goto errhnd
:CreateSiteCollection
echo Creating site collection
stsadm -o extendvs -url
http://%COMPUTERNAME%:80 -ownerlogin %3 -owneremail
a@b.com -databasename WSS_Content%2 -exclusivelyusentlm -description
SiteCollection -apidname Sitecollection -sitetemplate SPSPORTAL -apidtype
configurableid -apidlogin %3 -apidpwd %4
if not errorlevel 0 goto errhnd
iisreset
echo opening page
start
http://%COMPUTERNAME%goto end
:usage
echo Usage
echo SetupServer dbserver dbname username password
echo\
goto end
:errhnd
:end