How To: Make Sharepoint Faster

SharePoint can be really painful when it comes to performance and resources. Here are some tips on how to make SharePoint faster:

 

Disable automatic update certificates

  • Launch gpedit.msc as admin on the SharePoint server
  • Go to Computer Configuration -> Windows Settings -> Security settings -> Public Key Policies -> Certificate Path Validation Settings

    101112_1155_SharePointP1

  • In Network retrieval tab -> select Define the policy settings and uncheck the option Automatically update certificates in the Microsoft Root Certificate Program (recommended):

    101112_1155_SharePointP2

  • Run the command gpupdate /force for policy changes to take immediately effect on the server.

 

Point crl.microsoft.com to localhost

  • Edit the hosts file at “%SYSTEMROOT%\System32\drivers\etc\hosts” to point crl.microsoft.com to 127.0.0.1 (localhost):

    101112_1155_SharePointP3

 

Disable CRL checking in Registry

  • Edit the registry to disable CRL checking by setting the State DWORD to 146944 decimal (SOFTWARE\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing for both HKEY_USERS\.DEFAULT and HKEY_CURRENT_USER) with the following PowerShell lines:

    set-ItemProperty -path “HKCU:\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing” -name State -value 146944

    set-ItemProperty -path “REGISTRY::\HKEY_USERS\.Default\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing” -name State -value 146944

    get-ChildItem REGISTRY::HKEY_USERS | foreach-object {set-ItemProperty -ErrorAction silentlycontinue -path ($_.Name + “\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing”) -name State -value 146944}

 

Edit the machine.config files

Edit the machine.configs at “C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config” and “C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine.config” and disable the “generatePublisherEvidence” or create it.

<configuration>

<runtime>

<generatePublisherEvidence enabled=”false” />

</runtime>

</configuration>

Or use this PowerShell Script:

?View Code POWERSHELL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Write-Host -ForegroundColor White " - Disabling Certificate Revocation List (CRL) check..."
 
ForEach($bitsize in ("","64"))
 
{
 
$xml = [xml](Get-Content $env:windir\Microsoft.NET\Framework$bitsize\v2.0.50727\CONFIG\Machine.config)
 
If (!$xml.DocumentElement.SelectSingleNode("runtime")) {
 
$runtime = $xml.CreateElement("runtime")
 
$xml.DocumentElement.AppendChild($runtime) | Out-Null
 
}
 
If (!$xml.DocumentElement.SelectSingleNode("runtime/generatePublisherEvidence")) {
 
$gpe = $xml.CreateElement("generatePublisherEvidence")
 
$xml.DocumentElement.SelectSingleNode("runtime").AppendChild($gpe) | Out-Null
 
}
 
$xml.DocumentElement.SelectSingleNode("runtime/generatePublisherEvidence").SetAttribute("enabled","false") | Out-Null
 
$xml.Save("$env:windir\Microsoft.NET\Framework$bitsize\v2.0.50727\CONFIG\Machine.config")
 
}
Install the SharePoint Root Authority certificate
  • Export the “SharePoint Root Authority” certificate from SharePoint with the “SharePoint 2010 Management Shell” and following lines of script:

    $rootCert = (Get-SPCertificateAuthority).RootCertificate

    $rootCert.Export(“Cert”) | Set-Content C:\SharePointRootAuthority.cer -Encoding byte

  • Import the “SharePoint Root Authority” certificate to the Trusted Root Certification Authorities store
  • Start -> Run -> MMC -> Enter
  • File -> Add/Remove Snap-in
  • Certificates -> Add -> Computer account -> Next -> Local computer -> Finish -> OK
  • Expand Certificates (Local Computer), expand Trusted Root Certification Authorities
  • Right-click Certificates -> All tasks -> Import
  • Next -> Browse -> navigate to and select C:\SharePointRootAuthority.cer -> Open -> Next -> Next -> Finish -> OK

 

Use a WakeUp Script to wake up Sharepoint Sites every morning before users arrive

A nice one can be found here: http://spwakeup.codeplex.com/

You can use a scheduled Task to run it every morning

4 responses to How To: Make Sharepoint Faster

Leave a Reply