PowerShell for SharePoint (on-prem), SharePoint 2013, SharePoint 2016

Disable “LoopBackCheck” for SharePoint Server

One thing that’s frustrating when you do testing, or studying with SharePoint, is having to enter your credentials every time you hit a Web Application…

Well, that’s actually coming from a security feature introduced wayyyyy back in Windows Server.
And as it says, it’s a security feature, and it’s called LoopBackCheck.

Meaning what? Meaning you can disable this feature in a development / testing environment, but DO NOT do this in Production.

So… When does this happen?
It happens when you try to access a SharePoint site using the FQDN (Fully Qualified Domain Name) directly from the server where it is hosted.

If you decide to disable the LoopBackCheck for your SharePoint testing, you need to do it on each SharePoint Server you wish to access this site. If you have only one server, then do it only once.

 

Disable LoopBackCheck via Registry

  • Log into the SharePoint Server
  • Open Run (Win+R)
  • Type Regedit
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

At this stage, you should notice that LoopBackCheck is not present.

  • Add a DWORD (32-bit) Value
RegistryEditor
Create a DWORD (32-bit) value
  • Call it DisableLoopBackCheck (then press Enter)
  • Right click on “DisableLoopBackCheck” >> click “Modify
  • Give it a value of 1
  • Leave the default at Hexadecimal
  • Click “OK
EnterValue
Enter the value of 1

Now you can restart the SharePoint Server(s) where you made the change.

 

 

Disable LoopBackCheck with PowerShell

You can also do the same by using PowerShell 🙂

Simply run the following:

New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name “DisableLoopbackCheck” -Value “1” -PropertyType DWORD
LoopBackCheckPowerShell
Use PowerShell to create the values

Restart the SharePoint Server(s) where you’ve made the change.

 

And remember… Only in a test/dev environment!

 

Loading Likes... Tagged , ,

Leave a Reply