Quota template for the site collection in SharePoint

The Quota template means to Lock or Unlock the SiteColletion for the user. It can be temporary or permanently used to prevent the access of the SharePoint site to the end users.

How to configure lock

These are the following steps to enable lock in sitecollection of SharePoint.

  • Go to Central Admin then click on Application Management
  • In the Site Collection section, click on Configure quotas and locks
  • Then Look for your site collection should be selected. (if not, then change to your site collection.)
  • In Site Lock Information section, select one of the following options
    • Unlock
    • NoAdditions
    • ReadOnly
    • NoAccess

Types of Locks in SharePoint

  • UnLock:  to unlock the site collection and make it available to users
  • NoAdditions: to prevent users from adding new content to the site collection. Updates and deletions are still allowed
  • ReadOnly: to prevent users from adding, updating, or deleting content
  • NoAccess: to prevent users from accessing the site collection and its content. Users who attempt to access the site receive an error.


To lock or unlock a site collection by using Windows PowerShell

The command to set lock using powershell is as follows

Set-SPSite -Identity “<SiteCollection>” -LockState “<State>”

Creating and configuring SharePoint 2013 search using powershell

In previous post of Sharepoint search overview, we knows about the SharePoint search architecture and its different components. Today, we are going to create and configure about Search service application (SSA) using powershell.
SharePoint search service application crawls the content of site collections and provides search functionality. The powershell needs to run in SharePoint management shell in SharePoint server. The script is suitable only for single server SharePoint farm.

# Get App Pool
$saAppPoolName = "SearchAppPool"

# Search Specifics, suitable for single server farm
$searchServerName = (Get-ChildItem env:computername).value
$serviceAppName = "Search Service Application"
$searchDBName = "SearchService_DB"

# Grab the Application Pool for Service Application Endpoint
$saAppPool = Get-SPServiceApplicationPool $saAppPoolName

# Start Search Service Instances
Write-Host "Starting Search Service Instances..."
Start-SPEnterpriseSearchServiceInstance $searchServerName
Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $searchServerName

# Create the Search Service Application and Proxy
Write-Host "Creating Search Service Application and Proxy..."
$searchServiceApp = New-SPEnterpriseSearchServiceApplication -Name $serviceAppName -ApplicationPool $saAppPoolName -DatabaseName $searchDBName
$searchProxy = New-SPEnterpriseSearchServiceApplicationProxy -Name "$serviceAppName Proxy" -SearchApplication $searchServiceApp

# Clone the default Topology (which is empty) and create a new one and then activate it
Write-Host "Configuring Search Component Topology..."
$clone = $searchServiceApp.ActiveTopology.Clone()
$searchServiceInstance = Get-SPEnterpriseSearchServiceInstance
New-SPEnterpriseSearchAdminComponent –SearchTopology $clone –SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchContentProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchAnalyticsProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchCrawlComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchIndexComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchQueryProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance

SharePoint 2013 search architecture : Overview

SharePoint 2013 search allows users to find relevant information quickly and makes it easy for Search administrators to customize search experience for end users. It is a combination of FAST Search and SharePoint Search components.

Search in SharePoint 2013 improves a lot and comes with a new features. It is re-architected to a single enterprise search platform. It consists of the following areas :

  • Crawl and content processing
  • Index
  • Query processing
  • Search administration
  • Analytics

Continue reading SharePoint 2013 search architecture : Overview

SharePoint file download interrupted

In previous article SharePoint file download programmatically, we knows about downloading a file from document library and prompting the user to save it in Internet Explorer. When working on a custom SharePoint application and tries to download file from Internet Explorer, I received a download interrupted error most of the time. My web application was hosted in SharePoint on-premise environment. It is working without any issue in Google Chrome but failed to download in Internet explorer.

Continue reading SharePoint file download interrupted

SharePoint file download programmatically

In SharePoint, the file in document library can be downloaded using c# code . In the code below, provide the “ID” of the item and the document library name to download the file. User can download all types of file and will be prompted to save the file.

Continue reading SharePoint file download programmatically