Export-Import SharePoint Content Type using PowerShell

Requirement: Copy a Content Type from the development environment to the staging environment. Solution Overview: Export site columns associated with the content type from the source site collection Export custom content data types from source site collection Import site columns from the exported site columns XML Re-Create custom content types programmatically with…

Read more

Create, Update, Copy, Delete SharePoint List Views using PowerShell

Requirement is: There are lot of document libraries in a SharePoint site. Periodically, in all libraries there is a need to: Create a new view Update an existing view with new filter condition Create new new by copying existing view and modify the filter Delete an existing view Add new field to…

Read more

Find the GUIDs of SharePoint Web Application, Site Collection, Site, List, View and Columns

We may have to find the GUID of SharePoint objects such as web application, site collection, web, list, view, or column at times. Here are some nifty techniques: Get web application GUID in SharePoint Let’s find the web application GUID in SharePoint 2010. Go to Central Admin >> System Settings >> Click…

Read more

Find All Checked Out Files and Check-In them Back using PowerShell

I’m Sharing one of the PowerShell script I used in SharePoint 2010 migration. Since its very difficult to check-in back all the checked-out files after migration, its a best practice to check-in all checked out files prior. Find All Checked-Out files and Check in back in a SharePoint Library using PowerShell: Let’s…

Read more

SharePoint Server Correlation ID – Get Detailed Error using PowerShell

Correlation IDs are introduced in SharePoint 2010 to uniquely identify each error encountered. Later, these correlation IDs are used as a starting point reference to get the complete error details from ULS logs during troubleshooting issues. How to check correlation ID in SharePoint 2016? While it’s possible to open and search ULS…

Read more

Navigation Link Missing in SharePoint Site Settings

Created a site collection for “Marketing” team today and they came with a complaint: “I couldn’t see Navigation link under site settings! As ‘Navigation’ component  gives more options, we need it badly! How do we get it?”. Ok, I went to: Site Actions  >> Site Settings >> Look and Feel >> Nope!…

Read more

SharePoint Top Navigation, Quick Launch Flyout Menu

By default, SharePoint enables top navigation Fly out Menus when Publishing Feature is enabled. Other Site templates like Team Sites doesn’t come up with top navigation flyout menus. However we can enable top navigation flyout menus by adjusting few parameters in master page. Open the Master page in SharePoint designer, set “StaticDisplayLevels”…

Read more

Find and Replace Old Link URLs in Quick Launch, Top Navigation Menus during Migration

Found so many hard-coded links (Absolute links) in SharePoint Quick launch and in Top navigation bar. This PowerShell script, Scans and Replaces the provided Old URL with the New URL all over the SharePoint web Application. PowerShell Script to Find and Replace Quick Launch and Top Navigation Links: This script may even…

Read more

SharePoint Document Versions Size Report with PowerShell

This is a PowerShell version of my existing post Version History Size Report for SharePoint which uses C# object model to generate a versioning report and gives insights, such as: Site/Library’s Total versions size Total No. of versions created Which documents are with more versions Type of the documents Library in which…

Read more