Showing posts with label Installation. Show all posts
Showing posts with label Installation. Show all posts

Sunday, October 9, 2011

Installation of SharePoint SP1 - 14.0.6106.5002

This blog describes the installeion of SP1 an a multi server farm with 7 installed language packages, 

Known issues when you install Office 2010 SP1 and SharePoint 2010 SP1


Installation Order
WEF (Central Admin)
WEF
APP

Stop this services
  • net stop "World Wide Web Publishing Service"
  • net stop "Microsoft Office Project Server Queue Service"
  • powershell /Executionpolicy Unrestricted /File "%~d0%~p0Tools\createNewFarm.ps1"
Get-SPServiceInstance | where-object {$_.TypeName -eq "User Profile Synchronization Service"} | Stop-SPServiceInstance -Confirm:$false

Here is the installation process:
 
1. Office Web App Hotfix (http://support.microsoft.com/kb/2532126)
excelwebapp-kb2510639-fullfile-x64-glb.exe /log:C:\SP1.Install\excelwebapp-kb2510639.log /quiet /norestart
excelwebapp-kb2510648-fullfile-x64-glb.exe /log:C:\SP1.Install\excelwebapp-kb2510648.log /quiet /norestart

2. REBOOT

3. Microsoft SharePoint Foundation 2010 SP1
sharepointfoundation2010sp1-kb2460058-x64-fullfile-en-us.exe /log:C:\SP1.Install\sharepointfoundation2010sp1-kb2460058.log /quiet /norestart

4. Microsoft SharePoint Foundation 2010 Language Pack 2010 SP1
Chinese (PRC)
spflanguagepack2010sp1-kb2460059-x64-fullfile-zh-tw.exe /log:C:\SP1.Install\spflanguagepack2010sp1-kb2460059-zh.log /quiet /norestart
French
spflanguagepack2010sp1-kb2460059-x64-fullfile-fr-fr.exe /log:C:\SP1.Install\spflanguagepack2010sp1-kb2460059-fr.log /quiet /norestart
German
spflanguagepack2010sp1-kb2460059-x64-fullfile-de-de.exe /log:C:\SP1.Install\spflanguagepack2010sp1-kb2460059-de.log /quiet /norestart
Italian
spflanguagepack2010sp1-kb2460059-x64-fullfile-it-it.exe /log:C:\SP1.Install\spflanguagepack2010sp1-kb2460059-it.log /quiet /norestart
Japanese
spflanguagepack2010sp1-kb2460059-x64-fullfile-ja-jp.exe /log:C:\SP1.Install\spflanguagepack2010sp1-kb2460059-ja.log /quiet /norestart
Portuguese
spflanguagepack2010sp1-kb2460059-x64-fullfile-pt-pt.exe /log:C:\SP1.Install\spflanguagepack2010sp1-kb2460059-pt.log /quiet /norestart
Spanish
spflanguagepack2010sp1-kb2460059-x64-fullfile-es-es.exe /log:C:\SP1.Install\spflanguagepack2010sp1-kb2460059-es.log /quiet /norestart
5. SharePoint Foundation 2010 hotfix package June 30
sharepointfoundation2010-kb2553931-fullfile-x64-glb.exe /log:C:\SP1.Install\sharepointfoundation2010-kb2553931.log /quiet /norestart

6. REBOOT

7. Microsoft SharePoint and Project Server 2010 SP1
officeserver2010sp1-kb2460045-x64-fullfile-en-us.exe /log:C:\SP1.Install\officeserver2010sp1-kb2460045.log /quiet /norestart

8. Microsoft 2010 Servers Language Pack SP1
Chinese (PRC)
serverlanguagepack2010sp1-kb2460056-x64-fullfile-zh-tw.exe /log:C:\SP1.Install\serverlanguagepack2010sp1-kb2460056-zh.log /quiet /norestart
French
serverlanguagepack2010sp1-kb2460056-x64-fullfile-fr-fr.exe /log:C:\SP1.Install\serverlanguagepack2010sp1-kb2460056-fr.log /quiet /norestart
German
serverlanguagepack2010sp1-kb2460056-x64-fullfile-de-de.exe /log:C:\SP1.Install\serverlanguagepack2010sp1-kb2460056-de.log /quiet /norestart
Italian
serverlanguagepack2010sp1-kb2460056-x64-fullfile-it-it.exe /log:C:\SP1.Install\serverlanguagepack2010sp1-kb2460056-it.log /quiet /norestart
Japanese
serverlanguagepack2010sp1-kb2460056-x64-fullfile-ja-jp.exe /log:C:\SP1.Install\serverlanguagepack2010sp1-kb2460056-ja.log /quiet /norestart
Portuguese
serverlanguagepack2010sp1-kb2460056-x64-fullfile-pt-pt.exe /log:C:\SP1.Install\serverlanguagepack2010sp1-kb2460056-pt.log /quiet /norestart
Spanish
serverlanguagepack2010sp1-kb2460056-x64-fullfile-es-es.exe /log:C:\SP1.Install\serverlanguagepack2010sp1-kb2460056-es.log /quiet /norestart

9. SharePoint Server 2010 cumulative update June 30
office2010-kb2536599-fullfile-x64-glb.exe /log:C:\SP1.Install\office2010-kb2536599.log /quiet /norestart

10. Microsoft Office Web Apps SP1
wacserver2010sp1-kb2460073-x64-fullfile-en-us.exe /log:C:\SP1.Install\wacserver2010sp1-kb2460073.log /quiet /norestart

11. Microsoft Office Web Apps cumulative update June 30
webapps-kb2553919-fullfile-x64-glb.exe /log:C:\SP1.Install\webapps-kb2553919.log /quiet /norestart

12. REBOOT
13. Configuration Wizard:
WEF (Central Admin)
PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures -cmd installcheck -noinstallcheck
And then on all other SharePoint servers
psconfig.exe -cmd upgrade -inplace b2b -wait

Sunday, July 4, 2010

SharePoint 2010 Services


If you use the wizard or the PowerShell command

Install-SPService

you will get a lot of databases with nice names
With the following PowerShell commands it looks a lot better:

Get-SPServiceApplicationPool
Name                                     ProcessAccountName
----                                     ------------------
SecurityTokenServiceApplicationPool      ALEGRIDEV\srvadmin
SharePoint Web Services Default          ALEGRIDEV\srvadmin
SharePoint Web Services System           ALEGRIDEV\srvadmin
Choose one of the services application pools
Activate Access Service:
New-SPAccessServiceApplication -Name "Access Database Service" -ApplicationPool "SharePoint Web Services Default"
DisplayName TypeName Id
----------- -------- --
Access Database S... Access Services W... 9921a156-1529-4e22-a903-e6fbcc74994d
Get-SPServiceInstance | where-object {$_.TypeName -eq "Access Database Service"} | Start-SPServiceInstance
TypeName Status Id
-------- ------ --
Access Database Service Provi... 00a4048c-481a-4124-a1db-0790d45549ef
Activate Application Usage:
new-spusuageapplication -name "Application Registry Service" -databasename "MOSS_Content_Usage"
Activate Business Data Catalog Service:
New-SPBusinessDataCatalogServiceApplication -Name "Business Data Connectivity Service" -ApplicationPool "SharePoint Web Services Default" -DatabaseName "MOSS_Content_BCS"
DisplayName TypeName Id
----------- -------- --
Business Data Con... Business Data Con... 288a04d0-6b66-4dbc-aaab-7124436ffd99
Activate Excel Services:
New-SPExcelServiceApplication -name "Excel Services" -ApplicationPool "SharePoint Web Services Default"
DisplayName TypeName Id
----------- -------- --
Excel Services Excel Services Ap... 6f980512-aa19-47ee-aeef-1bde4c9f1abc
Set-SPExcelFileLocation -Identity "http://" -ExcelServiceApplication "Excel Services" -ExternalDataAllowed 2 -WorkbookSizeMax 10 -WarnOnDataRefresh:$true
Activate Managed Metadata Service:
New-SPMetadataServiceApplication -Name "Managed Metadata Services" -ApplicationPool "SharePoint Web Services Default" -DatabaseServer "SA_MOSS" -DatabaseName "MOSS_Content_Metadata"
DisplayName TypeName Id
----------- -------- --
Managed Metadata ... Managed Metadata ... faade99a-e1ba-4083-83e4-ae94174cdf6d
New-SPMetadataServiceApplicationProxy -Name "Managed Metadata Services Proxy" -DefaultProxyGroup -ServiceApplication "Managed Metadata Services"
DisplayName TypeName Id
----------- -------- --
Managed Metadata ... Managed Metadata ... d713a6d4-d790-4b56-a025-b999a932f8bd
Activate PerformancePoint Service:
New-SPPerformancePointServiceApplication -Name "PerformancePoint Service" -ApplicationPool "SharePoint Web Services Default" -DatabaseServer "SA_MOSS" -DatabaseName "MOSS_Content_PerformancePoint"
Name : PerformancePoint Service
Id : 8979b9ea-cfca-462a-92cd-a61dca6331f5
Administrators : {c:0%.c|system|8b1f3671-667b-4a85-a60f-0fa4f2dc4ead}
ApplicationPool : SPIisWebServiceApplicationPool Name=SharePoint Web Services Default
CommentsDisabled : False
CommentsScorecardMax : 1000
SelectMeasureMaximum : 1000
DecompositionTreeMaximum : 250
IndicatorImageCacheSeconds : 10
DataSourceQueryTimeoutSeconds : 300
FilterRememberUserSelectionsDays : 90
FilterTreeMembersMax : 5000
ShowDetailsInitialRows : 1000
ShowDetailsMaxRowsDisabled : False
ShowDetailsMaxRows : 10000
TrustedDataSourceLocationsRestricted : False
TrustedContentLocationsRestricted : False
MSMQEnabled : False
MSMQName : .\Bpm
SessionHistoryHours : 10
AnalyticQueryLoggingEnabled : False
ApplicationProxyCacheEnabled : True
ApplicationCacheEnabled : True
ApplicationCacheMinimumHitCount : 2
ElementCacheSeconds : 15
DataSourceUnattendedServiceAccountUsername :
SettingsDatabase : SA_MOSS\\PerformancePoint Service_d00e597cf38d4656af64714aeda3cacf
AnalyticQueryCellMax : 100000
New-SPPerformancePointServiceApplicationProxy -Default -Name "PerformancePoint Service Proxy" -ServiceApplication "PerformancePoint Service"
DisplayName TypeName Id
----------- -------- --
PerformancePoint ... PerformancePoint ... 450e1aec-23ec-4cdf-b274-e1484fde9782
Activate PowerPoint Services:
New-SPPowerPointServiceApplication -Name “PowerPoint Service” -ApplicationPool "SharePoint Web Services Default"
DisplayName TypeName Id
----------- -------- --
PowerPoint Services PowerPoint Servic... c2340338-3971-4203-84e6-505a3d35a68e
New-SPPowerPointServiceApplicationProxy -Name "PowerPoint Service Proxy" -ServiceApplication "PowerPoint Service"
DisplayName TypeName Id
----------- -------- --
PowerPoint Servic... PowerPoint Servic... e8b8d619-2413-4999-a8e2-b7c513793ea4
Activate Search Service:
$Search = New-SPEnterpriseSearchServiceApplication -Name "Search Service" -ApplicationPool "SharePoint Web Services Default" -DatabaseServer "SA_MOSS" -DatabaseName "MOSS_Content_Search"
Name : Search Service
Id : ea2329db-fa10-4d64-9d20-934f25cd16bd
ServiceName : SearchQueryAndSiteSettingsService
QueryTopologies : {3040de2c-0530-48c8-8b0f-946115543ada}
PropertyStores : {MOSS_Content_Search_PropertyStore}
CrawlTopologies : {bbb21327-9301-4034-9209-163f45922ff3}
CrawlStores : {MOSS_Content_Search_CrawlStore}
SearchAdminDatabase : SearchAdminDatabase Name=MOSS_Content_Search
Status : Online
SearchApplicationType : Regular
DefaultSearchProvider : SharepointSearch
Properties : {Microsoft.Office.Server.Utilities.SPPartitionOptions}
$searchrun = Get-SPEnterpriseSearchServiceInstance "vmalegri"
Start-SPEnterpriseSearchServiceInstance "vmalegri"
Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance "vmalegri"
$search | Get-SPEnterpriseSearchAdministrationComponent | Set-SPEnterpriseSearchAdministrationComponent -SearchServiceInstance $searchrun
$CrawlTopology = $search | Get-SPEnterpriseSearchCrawlTopology -Active
$CrawlTopologyNew = $searchApp | New-SPEnterpriseSearchCrawlTopology
$CrawlDatabase = ([array]($search | Get-SPEnterpriseSearchCrawlDatabase))[0]
$CrawlComponent = New-SPEnterpriseSearchCrawlComponent -CrawlTopology $CrawlTopologyNew -CrawlDatabase $CrawlDatabase -SearchServiceInstance $searchRun
$CrawlTopologyNew | Set-SPEnterpriseSearchCrawlTopology -Active
do {write-host -NoNewline .;Start-Sleep 6;} while ($InitialCrawlTopology.State -ne "Inactive")
$CrawlTopology | Remove-SPEnterpriseSearchCrawlTopology
$QueryTopology = $search | Get-SPEnterpriseSearchQueryTopology -Active

$QueryTopologyNew = $search | New-SPEnterpriseSearchQueryTopology -Partitions 1
$IndexPartition= (Get-SPEnterpriseSearchIndexPartition -QueryTopology $QueryTopologyNew)
$QueryComponent = New-SPEnterpriseSearchQuerycomponent -QueryTopology
$QueryTopologyNew -IndexPartition $IndexPartition -SearchServiceInstance $searchrun
$PropertyDatabase = ([array]($search | Get-SPEnterpriseSearchPropertyDatabase))[0]
$IndexPartition | Set-SPEnterpriseSearchIndexPartition -PropertyDatabase $PropertyDatabase
$QueryTopologyNew | Set-SPEnterpriseSearchQueryTopology -Active
$searchAppProxy = New-SPEnterpriseSearchServiceApplicationProxy -Name "Search Service Proxy" -SearchApplication "Search Service"
Activate New State Service:
New-SPStateServiceDatabase -Name "MOSS_Content_StateService" -DatabaseServer "SA_MOSS" | New-SPStateServiceApplication -Name "State Service" | New-SPStateServiceApplicationProxy -Name "State Service Proxy" -DefaultProxyGroup
DisplayName TypeName Id
----------- -------- --
State Service Proxy State Service Proxy 420caaf5-29a6-4dca-9278-24fee11eef29
Activate Secure Store Service:
New-SPSecureStoreServiceapplication -Name "Secure Store Service" -Sharing:$false -DatabaseServer "SA_MOSS" -DatabaseName "MOSS_Content_SecureStore" -ApplicationPool "SharePoint Web Services Default" -auditingEnabled:$true -auditlogmaxsize 30 | New-SPSecureStoreServiceApplicationProxy -name "Secure Store Service Proxy" -DefaultProxygroup
DisplayName TypeName Id
----------- -------- --
Secure Store Serv... Secure Store Serv... b4f6de99-2323-4875-a03f-c0a2f1137263
Activate User Profile Service:
$userProfileService = New-SPProfileServiceApplication -Name "User Profile Synchronization Service" -ApplicationPool "SharePoint Web Services Default" -ProfileDBServer "SA_MOSS" -ProfileDBName "MOSS_Content_UserProfile" -SocialDBServer "SA_MOSS" -SocialDBName "MOSS_Content_UserSocial" -ProfileSyncDBServer "SA_MOSS" -ProfileSyncDBName "MOSS_Content_UserSync"
New-SPProfileServiceApplicationProxy -Name "User Profile Synchronization Service" -ServiceApplication $userProfileService -DefaultProxyGroup
Name Type Id
---- ---- --
User Profile Sync... User Profile Serv... e4d53a40-cd31-437e-85b5-ca9ccb0b2f6a
Get-SPServiceInstance | where-object {$_.TypeName -eq "User Profile Service"} | Start-SPServiceInstance
TypeName Status Id
-------- ------ --
User Profile Service Provi... 7bc15c13-c351-41c4-991d-726b756c98cc
Get-SPServiceInstance | where-object {$_.TypeName -eq "User Profile Synchronization Service"} | Start-SPServiceInstance
TypeName Status Id
-------- ------ --
User Profile Synchronization ... Provi... e7a7707a-0406-48f3-96e4-c45ba8422f96
Activate Visio Services:
New-SPVisioServiceApplication -Name "Visio Graphics Service" -ApplicationPool "SharePoint Web Services Default"
Name : visio Graphics Service
Id : 37d376c2-448f-4e77-8b72-d038c0416ab3
ApplicationPool : SPIisWebServiceApplicationPool Name=SharePoint Web Services Default
New-SPVisioServiceApplicationProxy -Name "Visio Graphics Service" -ServiceApplication "Visio Graphics Service"
Name : Visio Graphics Service
Id : 0fa40f47-f3cb-4822-b627-268d85b255cd
Activate Word Conversion Service:
New-SPWordConversionServiceApplication -Name "Word Conversion Service" -ApplicationPool "SharePoint Web Services Default" -DatabaseServer "SA_MOSS" -DatabaseName "MOSS_Content_WordAutomation" -Default
Name : Word Conversion Service
Id : 6b61483c-7b99-4519-9630-74af660bbcf5
ApplicationPool : SPIisWebServiceApplicationPool Name=SharePoint Web Services Default
Database : QueueDatabase Name=MOSS_Content_WordAutomation
Status : Online
Activate Word Viewing Service:
New-SPWordViewingServiceApplication -Name "Word Viewing Service" -ApplicationPool "SharePoint Web Services Default"
DisplayName TypeName Id
----------- -------- --
Word Viewing Service Word Viewing Serv... 7cbb597a-33da-4065-ba5b-67e1c9063e66
New-SPWordViewingServiceApplicationProxy -Name "Word Viewing Service Proxy" -ServiceApplication 7cbb597a-33da-4065-ba5b-67e1c9063e66
DisplayName TypeName Id
----------- -------- --
Word Viewing Serv... Word Viewing Serv... 31a3d4c1-5bbe-4f2a-94a7-b3b1ef50cc50
Some of the services need a IISReset to work properly
IISReset
Only one database name can not be configured
clip_image001

Tuesday, April 6, 2010

SharePoint 2010 RC Unattended Installation

First of all you have to extract the installation file. In this case i used the following script to install 14.0.4730.1010_OfficeServer_none_ship_x64_en-us.exe.

14.0.4730.1010_OfficeServer_none_ship_x64_en-us.exe file /extract:C:\SP2010Install

After this it is necessary to create a config.xml file describing the binary installation process

Psconfig.xml

<Configuration>
<Package Id="sts">
<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>
</Package>
<Package Id="spswfe">
<Setting Id="SETUPCALLED" Value="1"/>
</Package>
<Logging Type="verbose" Path="%temp%" Template="SharePoint Server Setup(*).log"/>
<PIDKEY Value="PRODUCT KEY" />
<Display Level="none" CompletionNotice="no" />
<Setting Id="SERVERROLE" Value="APPLICATION"/>
<Setting Id="USINGUIINSTALLMODE" Value="0"/>
<Setting Id="SETUP_REBOOT" Value="Never" />
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
</Configuration>

With this xml file and a small powershell script it is possible to complety install SharePoint 2010 without manual interaction

SP2010install.ps1:

#Execute setup.exe with a xml to install SharePoint
& 'C:\SP2010Install\setup.exe' '/config' 'C:\2010CMD\spconfig.xml' | out-null
#Include the SharePoint cmdlets
Add-PsSnapin Microsoft.SharePoint.PowerShell
#Variables
$database = "MOSS_Config_Farm"
$admindatabase = "MOSS_Content_CentralAdministration"
$sqlserver = "SA_MOSS"
$passphrase = (ConvertTo-SecureString "Passphrase111" -AsPlainText -force)
$username = "alegri\srvadmin"
$password = (ConvertTo-SecureString "password" -AsPlainText -force)
#Disable loopback check
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword
#Create the credentials
$credentials = New-Object System.Management.Automation.PsCredential $username,$password
#Execute the config wizard
New-SPConfigurationDatabase -DatabaseName $database –AdministrationContentDatabaseName $admindatabase -DatabaseServer $sqlserver -Passphrase $passphrase -FarmCredentials $credentials
#Provision a Central Administration Site
New-SPCentralAdministration -Port 12000 -WindowsAuthProvider "NTLM"
#Install help files
Install-SPHelpCollection –All
Install-SPApplicationContent
#Secure Resources
Initialize-SPResourceSecurity
#Install all exiting features
Install-SPFeature –AllExistingFeatures
#Provision services
Install-SPService

For some help how to use pwershell please refer to

http://www.microsoft.com/downloads/details.aspx?FamilyID=045f7af5-b226-4a05-8ace-4e17cfdef856&displaylang=en

If you did no sign your powershell script you can check the execution policy with

Get-ExecutionPolicy

To run unsigned scripts activate the command

Set-ExecutionPolicy Unrestricted

With Get-Help About_signing you can get on overview of the different execution policy settings

I used SQL 2008. In the installation process i got the following error message

New-SPConfigurationDatabase : SQL server at SA_MOSS has an unsupported version

10.0.2531.0. Please refer to "http://go.microsoft.com/fwlink/?LinkId=165761" for information on the minimum required SQL Server versions and how to download them.

At line:1 char:28

+ New-SPConfigurationDatabase <<<< -DatabaseName $sp_databasename -DatabaseServer $sp_databaseserver -Passphrase $sp_passphrase -FarmCredentials $sp_credentials

+ CategoryInfo : InvalidData: (Microsoft.Share...urationDatabase: SPCmdletNewSPConfigurationDatabase) [New-SPConfigurationDatabase], SPException

+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPConfigurationDatabase

A roll-up hotfix must be installed:

http://support.microsoft.com/kb/970315/

If you want to reinstall SharePoint (Trial) and get the following error message:

"Microsoft Office Server Trial Edition may not be installed on a server with licensed Microsoft Office Server products. Remove existing Microsoft Office Server products and re-run setup".

You have to delete the following registry keys:

HKLM\Software\Microsoft\Shared Tools\Web Server Extensions\14.0

HKLM\Software\Microsoft\Office Server