SharePoint By Yagya Shree

Posts Tagged ‘site

SP2013: Find All search crawl Property

leave a comment »


Requirement:

How to find all search crawl property in a TEXT or EXCEL file for a specific site collection using PowerShell

 

Resolution:

1st Phase:

Find the GUID for site collection by running below script from Windows PowerShell ISE on any of the sharepoint servers in farm.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”
$site = Get-SPSite https://sharepoint.contoso.com/sites/SP2013
$siteguid = $site.id
echo $siteguid

2nd Phase

Once you got the GUID for site collection from phase 1, run below script

Add-PSSnapin “Microsoft.SharePoint.PowerShell”
$searchapp = Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchMetadataCrawledProperty -SearchApplication $searchapp -SiteCollection <Site_GUID> -limit All >C:\Temp\crawlproperty.csv

Written by Yagyashree

September 19, 2016 at 8:23 pm

SharePoint 2013: Site in Read only mode

leave a comment »


Issue:
SharePoint site is  in read only mode & the following message would show up when users browsed to the site.
“We apologize for any inconvenience, but we’ve made the site read only while we’re making some improvements.”

Image1 

When we Go to “Site collection Quota & locks” in Central Admin & here is how the Status looks like. It is locked as “Read only” & all settings are grayed out.
Image2

Solution:

 

The way to clear this flag is use the ClearMaintenanceMode method. Here is how it can be done via SharePoint Management Shell

# $Admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration(‘http://<Site Collection URL>)
$Admin.ClearMaintenanceMode()

 

 

Written by bajiraoshinde

April 25, 2016 at 8:48 pm

Posted in sharepoint

Tagged with , ,

Preventing me from adding any additional column in existing list and /_layouts/mngfield.aspx extremely slow to load for sub sites

leave a comment »


Issues:

1. Trying to ‘Add from existing site columns‘ to one of my SharePoint lists on a http://SiteUrl
——————————————————————
Error
An unexpected error has occurred.
Correlation ID: GUID

Preventing

—————————————————————–
2. Click on Site Settings->Site Columns ( http://SiteUrl/_layouts/mngfield.aspx ) extremely slow to load for sub sites

Root cause:

Looking up that Correlation ID in the SharePoint 2013 ULS logs I saw this error:

“Error when access /_layouts/15/AddFieldFromTemplate.aspx, Error=No two choices should have the same ID at Microsoft.SharePoint.ApplicationPages.ChoiceComparerWithDefaultGroup.Compare”

Found two Site Columns in http://SiteUrl Site that was using the same internal name, and that Site column was associated with list which is preventing me from adding any additional columns.

By browsing to the Site Collection Site Columns (<Site Url>/_layouts/mngfield.aspx ) I noticed under one of Site Column Group that there were two Site Columns listed with the same “CoulmnName”,

Solution:
We need to remove duplicate Site Columns from that Site Column Group.

Written by bajiraoshinde

April 19, 2016 at 9:00 pm

Posted in sharepoint

Tagged with , , ,

How to find specific user as a site collection administrator in entire sharepoint farm

leave a comment »


Please run below script in a sharepoint server using farm admin account

Get-SPWebApplication | select -expandproperty Sites | %{get-spsite $_} | ?{$_.owner -like “domainname\userid”} | select URL,Owner | out-file “C:\OwnedSites.txt” -Width 200

Written by Yagyashree

July 31, 2013 at 12:38 am

Posted in sharepoint

Tagged with , ,

Changing SharePoint Site Access request email

leave a comment »


In a SharePoint site collection, when you want to change site access request email on all levels of sites and subsites below it, then we can use below powershell script to achieve this easily:

Script :
+++++++++++++++++++++++++
$content = Get-Content C:\scripts\owners.txt
foreach($tsite in $content)
{
$site = Get-SpSite $tsite
foreach($tempweb in $site.AllWebs)
{
if($tempweb.RequestAccessEnabled)

                $str = $tempweb.RequestAccessEmail.ToLower()
                if(($str -eq “Email Address old 1”) -or ($str -eq “Email Address Old 2”))
                {
                                $tempweb.RequestAccessEmail = “Email Address New”
                                $tempweb.Url | out-file C:\scripts\SiteEmailUpdate.txt -append -width 1000
                                Write-Host $tempweb.Url
                }
}

}
}
++++++++++++++++++++++++++++++++++

Written by Yagyashree

September 22, 2012 at 3:31 pm

Posted in sharepoint

Tagged with , , ,

Site not browse able with host header – 401.1 error

leave a comment »


ISSUE DESCRIPTION
===================

>SharePoint site is browse able from the client machine with the host header.
>When browsing from the server, it prompts for credentials three times and then we get 401.1 Unauthorized error.
>On server, we can browse the SharePoint site with server name(In some cases even with server name, the site doesn’t come up)

RESOLUTION
===================

>Remove the security update KB963027 for Internet Explorer 7.0 and then reboot the server.
>If that didn’t work try with http://support.microsoft.com/kb/896861

Written by Yagyashree

June 6, 2009 at 3:21 am

Posted in sharepoint

Tagged with , , , , , ,

“File Not Found” error message accessing main page after enabling custom feature on site collection

leave a comment »


ISSUE:

——–

àAfter enabling the feature customer was unable to access the main page of the site and got error message “File Not Found”

àYou are facing the same issue when he browse the site actions–site settings, “Master Pages” & “Web Parts”
àYou are able to browse the top level site collection http://sps03.shorturl.com/ main page without any error message

àYou are also able to browse “Sites & Workspaces” beneath the http://sps03.shorturl.com/sites/yagyashree
àYou are using OOB Master Page. A summary of the solution is detailed below.

 

 Cause

——–

à Users have tried to enable a custom feature on this site collection

 

Resolution

————-

à Open the SharePoint site http://sps03.shorturl.com/sites/yagyashree in SharePoint Designer 2007
à Opened the subsite under this site
à Copy the default.master from the subsite

à Renamed the original default.master to default.old

à Paste the copy from subsite

à Right Click on new default.master and choose “Make this as new default.master

à Save the changes

à Open the site and it should be working fine
àCheck the site actions–site settings and check the “master pages” & “web parts”, they should be coming up fine

Written by Yagyashree

April 8, 2009 at 12:09 am

Posted in sharepoint

Tagged with , , , , , , , , , , , ,

%d bloggers like this: