Skip to main content
Sign In
San Diego Computer & Network Consulting Experts 
Go Search
 
Home
Our Microsoft Expertise
Our Services
Microsoft Solutions Blog
About Gilham Consulting
Contact Us
Support Portal
  

 

z
Home > Gilham Consulting Microsoft Notepad > Posts > Unattended SharePoint 2010 Install with PowerShell
Unattended SharePoint 2010 Install with PowerShell

Eric Kraus points out this great nugget of how to create a unattended install of SharePoint 2010

1.  Create an XML file that looks like this.  This will do a Full Farm Install (quietly).  For other config files, check out  e:\Files\SetupFarmSilent\config.xml  (e: is the drive with SharePoint on it)
sharepointInstall_config.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="USE_YOUR_KEY_HERE" />
    <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>
2.  Next create a PowerShell script, that looks like this  (save it to the same folder as the XML file above):

Install-SharePoint.ps1
----------------------------------------------------
$config = "sharepointInstall_config.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"
3.  Now run your script from PowerShell, with the the working directory set to the location of your script files:
PS C:>  cd sharepointScript
PS C:\sharepointScript> .\Install-SharePoint.ps1
4.  Wait a few minutes and the install will complete quietly.
5.  Proceed to provisioning the farm with PowerShell, here
Note:
  Don’t forget to set your execution policy in PowerShell to allow the script to run.  Easiest (but least secure):  Set-ExecutionPolicy Unrestricted

Read the complete article @> Eric Kraus' SharePoint/.NET Blog : Automated SharePoint 2010 Install with PowerShell

Comments

There are no comments yet for this post.
Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


CommentUrl


Attachments

 Latest Reader Comments

it good for meFree Office Communicator Integration Add-On for Outlook 2007 Allows Users to Interact with their OCS 2007 IM Contact List from the Outlook Pane.
Manager CleanupImporting and Deleting User Profiles in Sharepoint;Filtering Disabled Users from Import; Managing MySite of Deleted Users
I've updated the post titleSystem Center Configuration Manager (SCCM) 2007 R3 Announced
SCCM?System Center Configuration Manager (SCCM) 2007 R3 Announced
More info?Microsoft Dynamics CRM Online Update Coming November 2009
 Deleting Features from SharePoint.Removing Invalid SharePoint 2007 Features due to a Failed, Missing, or Unsuccessful Activation SharePoint WSP
server recovery toolsChanging the System Center DPM 2007 Server Recovery Tool (SRT) File Store location
jeu de sportUtility to Install Windows Source Files from USB Flash Drive (Windows 7, Vista, WinPE and Windows Server 2008)
Killing processes attached to SQL Server folderManual Uninstall of SQL 2005 (32bit / 64bit) SQL Server or Express (including Reporting Services)
PBX Cluster group is installed to make netbackup cluster awareThe mysterious cluster group called PBX-ClusterGroup-Servername revealed

 Subscribe and Bookmark

 Join us in San Diego

SharePoint 2010 Consulting

 Last 20 Articles

Category
Windows Firewall with Advanced Security: Step-by-Step Guide to Deploying Windows Firewall and IPsec Policies
Security
 
Automatically Test Application Compatibility for New Apps on Terminal Server/RDS Farm using the RDS Application Compatibility Analyzer
Terminal Services
 
Hyper-V Live Migration Network Configuration Best Practices
Virtualization
 
Forrester Research Posts on Legal Implications of Cloud Computing
IT Management
 
Planning for an Automated Windows 7 Upgrade from Windows XP
Windows Deployment
 
A CIO Check List for eDiscovery and Litigation
IT Management
 
Microsoft Announces New SharePoint 2010 Certifications
Sharepoint 2010
 
Transitioning Client Access Servers (CAS, OWA and ActiveSync) to Exchange Server 2010
Exchange 2010
 
Exchange 2010 Transport Architecture Diagrams Available for Download
Exchange 2010
 
Microsoft Forefront TMG Categories for Web URL Filtering/Blocking
Security
 
Microsoft OCS 2010 New Features
OCS 2010
 
Operation and Failover of Resource Hosting Subsystem (RHS) In Windows Server 2008 Failover Clusters
Windows Deployment
 
Migrating Exchange 2003 or 2007 ActiveSync to Exchange 2010
Exchange 2010
 
Problem Application Candidates for Virtualization with Microsoft App-V
Virtualization
 
BlackBerry Enterprise Server (BES) fully supported on Exchange 2010 RU1
Exchange 2010
 
How to setup an Exchange 2010 CAS Array to Load Balance MAPI
Exchange 2010
 
Getting started with BI in SharePoint Server 2010
Sharepoint 2010
 
Microsoft Infrastructure Planning and Design Guide Series
IT Management
 
Simple Windows Server 2008 Core Configuration Tool
Windows Deployment
 
SCVMM 2008 R2 VM Processor Hardware Profile CPU Type
Systems Center
 


Contact Us  |   San Diego, California

Copyright 2007-2009 Gilham Consulting - All rights reserved

San Diego Computer Consulting - San Diego IT Consulting - San Diego IT Support - San Diego Managed IT Services
San Diego Network Security Consulting - San Diego VOIP Phone System for Business