Change Page Layout in SharePoint using PowerShell

In a public internet SharePoint web site based on a publishing site template, We got a requirement to update existing page layouts and create new ones. So, the development team created new page layouts, Updated existing Page layouts with required changes. Any page going to be created with these updated page layouts…

Read more

Archive SharePoint Library Files into Sub-Folders using PowerShell

Requirement: We have a large library with more than 20,000 files stored in the root of the document library without any sub-folders. Got to move files into Sub-folders to improve performance. Solution: We analyzed the library content and decided to move files into sub-folders based on the file’s created date. Archive Files…

Read more

Get SharePoint Documents Inventory Report with PowerShell

Requirement: Get all files in a SharePoint Document Library using PowerShell This PowerShell script generates a detailed report on the given SharePoint library’s inventory in addition to its storage data. The output report contains: File Name File Size(KB) Versions Size(KB) Total File Size(KB) Created on Last Modified Created by Parent Folder URL…

Read more

Some Farm Products and patches were not detected on this or other servers – Fix

After patching a SharePoint 2013 Farm, I attempted running the SharePoint Products configuration wizard and received this error message: “Error: Some farm products and patches were not detected on this or other servers.  If products or patches are missing locally, you must quit this program and install the required products and patches…

Read more

SharePoint Active Directory Group Membership Sync Problem and Solution

Problem: SharePoint AD group membership permission changes are not reflected immediately. Active directory group users get access denied in SharePoint! In a SharePoint site where users are managed from AD security groups, newly added members to Active Directory security groups couldn’t access SharePoint sites immediately. But the next day, they are able…

Read more

Set SharePoint Application Pool Recycle Time

By design, application pools in IIS are restarted every 29 hours to provide the best performance and stability. The first user accesses SharePoint after app pool recycling will experience considerable delay, as .net assemblies need to be recompiled to the memory. So, we use Warm-up scripts for SharePoint 2013 to mitigate this…

Read more

Expand Collapse SharePoint Web Parts using jQuery

Requirement: Expand Collapse SharePoint list view web parts in Home page. Solution: We can implement Expand collapse functionality in SharePoint 2013 using jQuery. Here is how to expand/collapse web parts in SharePoint using jQuery. Just grab the IDS of List view web part (WebPartWPQ3) and Web part header (in my case: WebPartTitleWPQ3)…

Read more

Add-Remove Permissions to SharePoint List using PowerShell

Requirement: Set list permissions in SharePoint using PowerShell PowerShell can be utilized to Add/Remove permission to SharePoint List. Here is my PowerShell script to grant and remove permissions to SharePoint sites, lists, and libraries. Grant Permission to a user or group to SharePoint List Need to quickly give someone access to your…

Read more