Monday, September 16, 2013

PowerShell Script to improve SharePoint Load Time


If you have read the following Microsoft Support article:, you may already know that you can modify the Windows Registry in order to improve SharePoint’s overall load time.  This is especially useful if you are simply using SharePoint as a development environment rather than in a production scenario.

As the article states, you can simply modify the registry manually on your development machine, or if you prefer to automate these registry changes, you can simply use a PowerShell script such as the following:


#Set the DisableStrictNameChecking Registry Key
Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\LanmanServer\Parameters -Name DisableStrictNameChecking -Type DWORD -Value 1 -Force
#Set the DisableLoopbackCheck Registry Key
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Lsa -Name DisableLoopbackCheck -Type DWORD -Value 1 -Force

No comments:

Post a Comment