Click here to Skip to main content
977 members
Click here to Skip to main content
Add your own
alternative version


Posted 25 Nov 2011
Licenced CPOL

Sharepoint Site Install and Configuration Scripts

, 25 Nov 2011
Rate this:
Please Sign up or sign in to vote.
I have included some scripts my co-worker Oleg Petrychenko gave me to install Sharepoint 2007 from scratch


These files make the very difficult and time consuming Sharepoint 2007 install on a new server easy and automagical.


I have used these at least once on a development server. I make no guarantees as to warranty at all, use at your own risk, but they worked OK for me. It simplifies the total install process infinitely.

Disclaimer - Hope this helps, if it doesn't, don't bother to harass me about it. You get what you pay for and you got this for free. If this worked for you, vote me a 5!

Using the Code

To use the MOSS 2007 install scripts, you first have to run them as the farm administrator account. Download the zip file and de-compress on the server you wish to install Sharepoint on. Follow these steps to use the scripts.

  1. Make sure you have installed the enterprise edition of Sharepoint, binaries only, don't run the configuration wizard to create a new Sharepoint site.
  2. Open a command prompt: hit start button/Programs/accessories/command Prompt.
  3. Cd to the directory the scripts are located in.
  4. Edit the SetInputs.cmd file and change these values:
    • DBServer=[server on which the database will reside for Sharepoint]
    • FarmAcct=[Farm Administrator NT user name]
    • FarmAcctPWD=[Farm Administrator Password]
    • FarmAcctEmail=[Farm Administrator email]
    • WSSSearchAcct=[Farm Administrator NT user name]
    • WSSSearchAcctPWD=[Farm Administrator Password]
    • SearchAccessAcct=[Farm Administrator NT user name]
    • SearchAccessAcctPWD=[Farm Administrator Password]
    • MOSSSearchAcct=[Farm aDministrator NT user name]
    • MOSSSearchAcctPWD=[Farm Administrator Password]
    • SSPAppPoolAcct=[Farm aDministrator NT user name]
    • SSPAppPoolAcctPWD=[Farm Administrator Password]
    • MySitesAppPoolAcct=[Farm aDministrator NT user name]
    • MySitesAppPoolAcctPWD=[Farm Administrator Password]
    • PortalAppPoolAcct=[Farm aDministrator NT user name]
    • PortalAppPoolAcctPWD=[Farm Administrator Password]
    • MOSSPath=C:\ [You can change this if the default install is not on c: drive]
  6. Make sure after the install or any install you run the psconfig utility, I included a script for that too... Run after every install or Update.bat.

Points of Interest

Man, this saves a lot of time! Try them and let me know how they work for you! Thanks Oleg! Hope this helps, if it doesn't, don't bother to harass me about it, you get what you pay for and you got this for free.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Sean Ewington
Technical Writer CodeProject
Canada Canada
Sean Ewington is the Content Manager for CodeProject.

His background in programming is primarily C++ and HTML, but has experience in other, "unsavoury" languages.

He loves movies, and likes to say inconceivable often, even if it does not mean what he thinks it means.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
RA-Web1 | 2.8.181114.1 | Last Updated 25 Nov 2011
Article Copyright 2011 by Sean Ewington
Everything else Copyright © RootAdmin, 1999-2018
Layout: fixed | fluid