Enable Versioning for All Document Libraries in SharePoint

SharePoint versioning feature tracks changes, so that you can View document or item’s version history and audit/recover them if needed.  How to enable versioning in SharePoint? The Version feature is configured at list or library level. So, to enable version history: Go to your document library >> Click the Library tab on…

Read more

Remove All Users from SharePoint Site or List with PowerShell

Requirement: There is a SharePoint 2013 list lot of user permissions. Wanted to remove all user permissions from that SharePoint list. So tried removing all users, but SharePoint gave “You have chosen to delete too many groups at once. Select fewer groups and try again.” when choosing All users check box and…

Read more

Get SharePoint Central Admin URL in PowerShell

In PowerShell script writing, I had to get the central admin URL of the SharePoint farm. Tried various approaches and found the below to get SharePoint 2010/SharePoint 2013 Central Administration site URL using PowerShell: Alternatively,  you can use:

Read more

Enable PDF Preview in SharePoint 2013 with Office Web Apps

PDF preview for SharePoint 2013 integrated with Office web apps isn’t enabled by default. Use this below script to enable PDF previews in SharePoint 2013 search results. SharePoint 2013 office web apps PDF preview: SharePoint 2013 PDF preview in Search results: SharePoint 2013 enabling PDF previews in document libraries: Wictor Wilen has…

Read more

How to Create Host Named Site Collections in SharePoint 2013?

In short, Host-named site collections allows you to have unique URL addresses for each site collection. Say for e.g. Instead of having a typical “Sales” site URL as: http://sharepoint.yourcompany.com/sites/sales, You can have it as http://sales.yourcompany.com and for HR, it can be http://hr.yourcompany.com and so on. As per Technet, HNSC as the preferred…

Read more

SharePoint Site Detailed Storage Report using PowerShell

Requirement: Generate a detailed report on all list and library sizes of a SharePoint site. Solution: PowerShell script! Here is the PowerShell script to generate detailed storage information with listing all list and library sizes. This script generates the report in CSV format. Here is a snapshot after exporting to Excel: It…

Read more