0176253552
KeriaCoder
  • Welcome
  • About
  • Blog
  • Contact
  • Search

Disable Loopback Check

01/26/2016/0 Comments/in Tutorial /by keriacoder

credit to : technet.com

Way too much debate out in Twitterville and through other folks that are just flat out wrong. Why wrong? Well in a test lab environment I have no problem with this but folks tend to get lazy and that is where you run risks in your production environment.

Now im not going lament on the whys as this was finely detailed by Spence Harbar and let me quote from his post

“What is the issue?
Windows Server 2003 SP1 introduced a loopback security check. This feature is obviously also present in Windows Server 2008. The feature prevents access to a web application using a fully qualified domain name (FQDN) if an attempt to access it takes place from a machine that hosts that application. The end result is a 401.1 Access Denied from the web server and a logon failure in the event log.

Unfortunately 401.1 is not really helpful as this error code means there is a problem with the user credentials. Of course, the HTTP spec doesn’t know about security features in a vendor’s implementation so there can’t be a HTTP error code for such a feature. This can lead to much banging of the head on the desk. It’s one of numerous causes of the 401.1 which are nothing to do with invalid credentials (e.g. attempting to use Kernel Mode Authentication with domain account in IIS7).

What this means is that when you browse a SharePoint Web Application which uses a fully qualified domain name from a WFE in the farm you will get a 401.1. This is very annoying on a development box, or when testing locally, or in other SharePoint specific scenario “

Ok so we have some background info the one thing my buddy doesn’t do is show us how. Now the crux is that in http://support.microsoft.com/kb/896861 Microsoft details two such fixes for this. I am going to screenshot the right way to do this.

First off we need to add the following registry key to kick this off

 

In the screenshot above under HKEY_LM\system\CCS\Services\Lanmanserver\param we will create a dword DisableStrictNameChecking.  Add a value of 1 to this new entry,

Exit Registry and reboot your box

Reopen Registry and nav to HKEY_LM\System\CCS\Control\LSA\MSV1.0 and create the following key as shown below

1

Once there simply open this Multi-String Value and enter the sites you want included… ie your SharePoint sites J

No need for URLs here.. simply type in (for this example) connect.contoso.com on a separate line your next site and on and on down the line.

The beauty of this method is that once you add this key you wont have to reboot your box after adding these entries.

So hope this post along with Spences stops the silly questions and even more so… wrong answers folks are following

2

 

How To – Allow non-admins to start and stop system services

01/05/2016/0 Comments/in Tutorial /by keriacoder
Read more →

How to add new hostfile Tutorial

09/18/2015/0 Comments/in Tutorial /by keriacoder

Credit to : How-to-Geek

Modifying your hosts file allows you to override the DNS for a domain, on that particular machine. This is useful when you want to test your site without the test link, prior to going live with SSL; verify that an alias site works, prior to DNS changes; and for other DNS-related reasons. Modifying your hosts file causes your local machine only to look directly at the IP address specified.

 

The following sections provide instructions for locating and editing the hosts file on several operating systems. After you add the domain information and save the file, your system begins resolving to the specified IP address. After testing is finished, remove these entries.

  • Windows 8 or 8.1 or 10
  • Windows 7
  • Ubuntu
  • Mac OS x (any version)

Windows 8 or 8.1 or 10

First, Press the window key. Type notepad in the search field, then right-click on Notepad in the search results list, and choose to run it as administrator. If you’re using Windows 10 this will be on the Start Menu.

If you’re using Windows 10, it’ll look more like this:

Windows_10

Once you’re done, In Notepad, open the following file:

1
c:\Windows\System32\Drivers\etc\hosts

Windows_10

Then you can edit to the file. Once you’re done, Click File > Save or CTRL + S to save.

Windows 7

To access the hosts file in Windows 7 you can use the following command in the Run Line to open Notepad and the file :

1
notepad c:\windows\system32\drivers\etc\hosts

sshot-2010-08-31-[19-41-19]

Once Notepad is open, you can edit the file.

sshot-2010-08-31-[20-51-49]

After you edit your Hosts file make sure to save it by click on File > Save or CTRL + S.

sshot-2010-08-31-[20-54-07]

Ubuntu

In Ubuntu 10.04 and most Linux distro’s you can edit the hosts file directly in the terminal. You can use your favorite editor or even open your favorite GUI text editor. For this example we will use VIM. If you don’t have VIM you can refer from this; How to install VIM. Like Windows 7, Ubuntu’s hosts file is located in the /etc/ folder, though here it is in the root of the drive. In order to edit the file you will need to open it as root which is why we use sudo here.

Now that it is open we can edit it to redirect Facebook into nothing. You will notice that with Ubuntu there is also a section for IP6. For most needs you will only need to edit it the top section and ignore the IP6.

Then save the file.

Mac OS X (Any version)

In OS X, accessing the hosts file is very similar to Ubuntu. Begin in terminal and use your favorite editor, even is you wish to call a GUI text editor, it is easier to do so from terminal.

The file will look a bit more like Windows, only with a little less explanation. We are going to redirect Facebook.

This time it seems that 0.0.0.0 is a loopback and will direct you to the computers Apache test page.

 

[Keriacoder] - Powershell

[Powershell] – Import to Sharepoint List from CSV

08/22/2015/0 Comments/in Tutorial /by fahmi

Import to Sharepoint List from CSV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
# define web application where list is located
$web = Get-SPWeb http://contoso/
$list = $web.lists["List Name"]
$cnt = 0
# define csv document path
foreach($i in Import-CSV 'E:\Scripts\Excel\ImportFromCSV.csv')
{
$new = $list.Items.Add()
$new[“Title”] = $i.'Title'
$new.Update()
$cnt++
}
"Added " + $cnt.ToString() + " records."
"Data successfully imported. Press any key to continue…"
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

Please take note that this code must be run on the same server where the web application is with authenticated privilege. 

Simple way to move content database of SharePoint 2010

07/09/2015/0 Comments/in Tutorial /by fahmi

Original Post : http://sharepointtaskmaster.blogspot.com/ (March 01, 2012) -Sai Gon- Nice day to all! Today I want to share a simple way to move content database of SharePoint 2012 from SharePoint Database to another. You know in some cases we do not want to take a lot of time to configure of a Web Application with already […]

Read more →

Sharepoint : Get Error Details from Correlation ID via Powershell

06/24/2015/0 Comments/in Tutorial /by fahmi
Read more →

Cannot Complete This Action as the Secure Store Shared Service is not Responding

06/18/2015/0 Comments/in Troubleshoot, Tutorial /by fahmi

In order to resolve this, you can perform the following steps Open “Central Administration“ “Manage services applications”. under application management Stop and start the “Secure store service” . Open “Inetmgr” and select “SecurityTokenServiceApplicationPool” and do restart. Perform IIS reset.

Read more →

KeriaCoder View Stat

Recent Posts

  • Disable Loopback Check
  • How To – Allow non-admins to start and stop system services
  • How to add new hostfile Tutorial
  • [Powershell] – Import to Sharepoint List from CSV
  • Simple way to move content database of SharePoint 2010

Recent Comments

    Archives

    • January 2016
    • September 2015
    • August 2015
    • July 2015
    • June 2015

    Categories

    • Troubleshoot
    • Tutorial

    Latest Update

    • Disable Loopback Check01/26/2016 - 2:50 am
    • How To – Allow non-admins to start and stop system services01/05/2016 - 1:50 am

    Recent Comments

      Categories

      • Troubleshoot
      • Tutorial

      Archives

      Keria Coder (00208351-W)

      No 4a, Jalan Keluli Aj7/Aj,
      Taman Perindustrian Bukit Raja Selatan,
      40000 Shah Alam

      +60-0176253552
      fahmi@keriacoder.com

      © Copyright - KeriaCoder 2015 - Enfold WordPress Theme by Kriesi
        Scroll to top