Restart SharePoint Timer Service Remotely using PowerShell

SharePoint Timer service must be restarted for certain configuration changes in SharePoint administration activities. To restart timer service in SharePoint, follow these steps: Login to your SharePoint Web Front End Server(s) Open Services console ( Start >> Run >> Services.msc) From the “Services” console, Find “SharePoint Timer Service”. Right-click and choose “Restart”…

Read more

Get SharePoint Site Collection, Web, List Objects from GUID

Requirement: On Nintex workflow databases, Ran a query to fetch workflow usage statistics, and the query gave GUIDs of SPSite, SPWeb and SPList objects! How to Get SharePoint Site Collection, Web, List Objects from ID? Our workflow reporting gave a bunch of GUIDs of sites, web and other objects. Well, from SQL…

Read more

Open PDF Documents in New Window in SharePoint

By default, PDF documents are opened in the same browser window in SharePoint. Here is the trick to open PDF files in new window: Option 1: Open PDF in new window with jQuery Use this jQuery to script to open SharePoint 2010 PDF documents in a new window: This script can be…

Read more

SharePoint Search Scope Drop Down Missing?

SharePoint 2010 search drop downs such as “All Sites”, “People” missing in site collections? Shows only “Search This site…” in search box? Well, That’s the default setup in SharePoint 2010. Enable SharePoint search scope drop-down: How to enable search scope drop down in SharePoint 2010? Simple! Follow these steps: Make sure you…

Read more

Export SharePoint List Items to XML using PowerShell

Sometime back, I wrote a PowerShell script to import from a XML file to SharePoint list, Import XML File Data into SharePoint List using PowerShell. Now the requirement is in reverse: Export SharePoint List data to XML file! PowerShell script to Export SharePoint List Items to XML: How to export SharePoint list…

Read more

Change Master Page in SharePoint using PowerShell

Requirement: Change Master page for SharePoint Site collections. After a branding redesign project, Got a requirement to change master pages on existing sites. branding on new sites going to be created. But for existing sites, We got to change master pages manually. SharePoint: Set master page using PowerShell Let’s change master page…

Read more

Activate-Deactivate Feature on All Site Collections in SharePoint using PowerShell

We use “Enable-SPFeature” and ” Disable-SPFeature” PowerShell cmdlets in SharePoint 2013 / SharePoint 2016 sites to activate or deactivate features as in my another article: How to Activate-Deactivate Features in SharePoint. At times, we may have to activate feature for all site collections or deactivate feature on all sites. Here is my…

Read more

Add-Remove Content Types to SharePoint List or Library using PowerShell

SharePoint content types enable users to organize related data together. Everything is built around the content types in SharePoint to provide consistency and re-usability. For instance, All list templates such as Announcements and Tasks are built with content types “Announcement” and “Task”, respectively! Typically, a content type consists of template and metadata…

Read more

SharePoint Web Part Usage Report – Find All Locations where a Particular web part is being Used

During Migration, I had to get the URLs where a particular web part is being used. So, Used this PowerShell script to generate the SharePoint web part usage report. This script made compatible with SharePoint 2007, So it can be used in SharePoint 2010 and in SharePoint 2013 as well. Don’t forget…

Read more