Export SharePoint List Items to XML using PowerShell

March 23, 2014    , , ,
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 exp…

Change Master Page in SharePoint using PowerShell

March 23, 2014    , , , , , ,
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 2013 set mas…

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

March 23, 2014    , , , , ,
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 al…

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

March 21, 2014    , , , , , ,
SharePoint content types enables user to organize related data together. Everything is built around the content types in SharePoint to provide consistency and re-usability. Say for instance, All list templates such as Announcements, Tasks are built with content types "Announcement" and …

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

March 12, 2014    , , , , , ,
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 f…

Create a SharePoint Subsite from Custom Site Template using PowerShell

March 11, 2014    , , , , , ,
Requirement: We've a PMO site template created for managing projects in SharePoint. Had a new requirement to create some 20+ new PMO subsites based on the custom site template. To create a site based on site template, you can pick the custom tab and then select appropriate site template fro…

Download All Attachments from SharePoint List Items using PowerShell

March 07, 2014    , , , , , ,
Requirement: Download all attachments from a SharePoint list to local folder. Lets use PowerShell to download attachments from all SharePoint list items. PowerShell to Download Attachments from SharePoint List: [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoin…

Find All Users Who Accessed SharePoint Sites in the Past One Year

March 05, 2014    , , , , ,
Requirement: Get the E-mail ids of all users who accessed SharePoint sites during the past one year! Solution: Lets use Log Parser and PowerShell to fulfill this requirement. Here is how: Locate your SharePoint web application's log folders from all web front servers (usually: C:\WINDOWS…

SharePoint Products Configuration Wizard Failed to Connect to the Database Server.

March 03, 2014    , , , ,
Problem: SharePoint sites crashed suddenly! Found event id 5586 "The target principal name is incorrect. Cannot generate SSPI context." logged in SharePoint servers. Tried running SharePoint 2013 Products configuration wizard. Received error message: "Failed to connect to the d…

Enable Item-Level Permissions on Document Library in SharePoint using PowerShell

March 02, 2014    , , , , ,
SharePoint Lists provide item level security options such as "Read items that were created by the user" or "Create items and edit items that were created by the user" under "Advanced Settings" page in SharePoint list settings. But you don't get these options to…

Powered by Blogger.