Posts

Showing posts from January 10, 2016

Get entire SharePoint farm webs inventory

function Get-DocInventory() {     [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")     $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local     foreach ($spService in $farm.Services) {         if (!($spService -is [Microsoft.SharePoint.Administration.SPWebService])) {             continue;         }         foreach ($webApp in $spService.WebApplications) {             if ($webApp -is [Microsoft.SharePoint.Administration.SPAdministrationWebApplication]) { continue }             foreach ($site in $webApp.Sites) {                 foreach ($web in $site.AllWebs) {                     foreach ($list in $web.Lists) {                             $data = @{                                 "Web Application" = $webApp.ToString()                                 "Site" = $site.Url                                 "Web" = $web.Url                                 "list" = $lis

SharePoint - Create Host name for web application

Need to create web application with the following name: http://intranet.SP2013.com 1. Create Host Name open hosts file from the following path: c:\Windows\System32\drivers\etc enter the below mentioned line and save. 127.0.0.1 intranet.SP2013.com 2. Create Web Application Please note to set the following properties: Port: 80 Host Header: intranet.sp2013.com 3. Disable Loopback May face the following issues:- ·          There is continuous prompt for the credentials ·          HTTP 401.1 error To fix these issues, need to disable Loopback check, Open Registry editor (regedit.exe) and locate the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa Create a new Key ( DisableLoopbackCheck ) Value of type DWORD inside it and set the value to 1 . Now test the host name : http://intranet.sp2013.com