Thursday, January 3, 2013

Modify SharePoint list using PowerShell

In this post we will discuss how we can modify SharePoint list using PowerShell.

You can also check my previous posts on how to add items to SharePoint list using PowerShell , PowerShell commands for SharePoint database and Powershell script to get SharePoint feature IDs.

Below is the PowerShell command to update a SharePoint List.

$site    =     new-object Microsoft.SharePoint.SPSite("http://site URL")
$web     =    $site.rootweb                                                                                            

$list    =    $web.GetList("/Lists/ListName")

$spList.Title = "Modified Title"

$spList.Description = "Modified Description"

$spList.Update()

Also you can check out some SharePoint 2013 articles.

No comments:

Post a Comment