Archive

Archive for the ‘Powershell’ Category

How to install SharePoint 2010 Development Environment?

Required

Windows server 2008 SP2 / R2 / Windows 7
SQL 2008 with SP1
Visual Studio 2010
Microsoft Office 2010
SharePoint 2010
SharePoint 2010 Software Development Kit (SDK)

Hardware

Processor    64-bit
Hard disk    100 GB for system drive (c:\) *SharePoint 2010 environment need min 80GB on system.
RAM        4GB or more

Steps

  1. Operation System and Client Software Installation
    1. Install Windows Server 2008 SP2 / Windows Server 2008 R2
    2. Run Windows Update
    3. Install Visual Studio 2010
    4. Install Microsoft Office 2010
    5. Install SharePoint Designer 2010
    6. Install SharePoint 2010 Software Development Kit (SDK)
  2. Install SQL 2008 with SP1 / Install SQL 2008 R2 as a Prepared Image
  3. Install SharePoint 2010 Prerequisites
  4. Install SharePoint Server 2010 Binaries without configuration wizard
  5. Run sysprep.
  6. Copy of the image and Start Virtual PC
  7. SharePoint Configuration by using PowerShell AutoSPInstaller script

Operation System and Client Software Installation

Since you will be working with SharePoint, I think you have a good knowledge of installation of software, so I will not go through the detailed installation.

Install the following software on the Windows Server 2008 R2:

  • Install Windows Server 2008 SP2 / Windows Server 2008 R2
  • Run Windows Update
  • Install Visual Studio 2010
  • Install Microsoft Office 2010
  • Install SharePoint Designer 2010
  • Install SharePoint 2010 Software Development Kit (SDK)
  • Other additional client tools …

Install SQL 2008 with SP1 / Install SQL 2008 R2 as a Prepared Image

  1. Run SQL Server 2008 R2 Setup.exe from DVD.
  2. Select Advanced from the left navigation menu.

  3. Click on Image Preparation of a stand-alone instance of SQL Server.
  4. After Configuration Checker completed, click OK.
  5. Accept the License and click OK.
  6. Select the features to install:
  7. Enter an Instance ID, its required after cloning.
  8. Click Next twice.
  9. Click Prepare
  10. After Complete screen, click Close.

Install SharePoint 2010 Prerequisites

  1. Start SharePoint 2010 Installation form DVD\CD\Image and run PrerequisiteInstaller.exe.
  2. Review and Click Next.
  3. Accept the license and click Next.
  4. After installation Completed click Next.
  5. Restart Virtual PC

Install SharePoint Server 2010 Binaries without configuration wizard

  1. Start SharePoint 2010 Installation from CD\DVD\Image Setup.exe.
  2. Enter License Key and click Continue.
  3. Select Server Farm install.
  4. Select Complete on Server Type and click Install now.
  5. After Installation Completed please check out/clear the Run the SharePoint Products Configuration Wizard now checkbox, and click close.

Sysprep for cloning new Virtual PC

  1. Run sysprep.exe from C:\Windows\System32\sysprep\sysprep.exe
  2. In System Cleanup Action select “Enter System Out-of-box Experience(OOBE)” and select the Generalize checkbox.
  3. In the Shutdown Options: choose Shutdown and click OK.

Copy of the image and Start Virtual PC

Then, we have taken all the basic installation of software, After Sysprep, you have made virtual machine to the basic image. You may copy and re-use this base image, if the development environment crashes, or another developer can set up a development environment very quickly. You save a lot of time next time.

When you start the Virtual PC after Sysprep:

Now this Virtual PC has unique SID and you can rename your Computer name. From here you can just run the SharePoint 2010 Product Configuration Wizard to complete the SharePoint Farm.

Or you can use PowerShell Script to run the configuration.

Please take a look the AutoSPInstaller Script thanks to Brianlala.

 

Install SharePoint with Powershell

Easy installation of SharePoint 2010 using PowerShell, PowerShell can make life easier for an IT person to setup the development machine or a production farm.  

  • ENTER YOUR KEY
  • Installation xml
  • PowerShell script  

Step 1
install_SharePoint.xml

<Configuration>
    <Package Id=”sts”>
        <Setting Id=”LAUNCHEDFROMSETUPSTS” Value=”Yes”/>
    </Package>

    <Package Id=”spswfe”>
        <Setting Id=”SETUPCALLED” Value=”1″/>
        <Setting Id=”OFFICESERVERPREMIUM” Value=”1″ />
    </Package>

    <Logging Type=”verbose” Path=”%temp%” Template=”SharePoint Server Setup(*).log”/>
    <PIDKEY Value=”ENTER YOUR KEY” />
    <Setting Id=”SERVERROLE” Value=”APPLICATION”/>
    <Setting Id=”USINGUIINSTALLMODE” Value=”1″/>
    <Setting Id=”SETUP_REBOOT” Value=”Never” />
    <Setting Id=”SETUPTYPE” Value=”CLEAN_INSTALL”/>
        <INSTALLLOCATION Value=”c:\Program Files\Microsoft SharePoint” />
        <Display Level=”Basic” CompletionNotice=”Yes” AcceptEULA=”Yes” />
</Configuration>

Step 2
PowerShellscript.ps1:

$config = "install_SharePoint.xml"
$bits = "e:\"
cls
Write-Progress -Activity "Installing SharePoint Quietly" -Status "Copying config file locally"
Copy-Item $config -Destination $bits
Write-Progress -Activity "Installing SharePoint Quietly" -Status "Installing SharePoint"
cmd.exe /C "$bits\setup.exe /config $config"  

Step 3
Start powershell and navigate to PowerShellScript.ps1 forder and enter on the script. The installation of SharePoint 2010 will run quietly :)

Good luck!

Categories: Powershell, SharePoint2010
Follow

Get every new post delivered to your Inbox.

Join 41 other followers