Tuesday, August 2, 2011

Update Title Sharepoint 2010 List using Powershell 2010

$siteUrl = "http://servername/sites/P127036/"
[system.reflection.assembly]::LoadWithPartialName("Microsoft.Sharepoint") > $null
$site = New-Object Microsoft.SharePoint.SPSite($siteUrl)
$RootWeb = $site.RootWeb
$lookForList ="Bookmarks"
 $BookmarksList= $RootWeb.Lists[$lookForList]
   if ($BookmarksList -ne $null)
   $BookmarksList.Title = "Links"

# Dispose the site object
if ($site) {$site.Dispose()}
if ($RootWeb){ $RootWeb.Dispose()}

1 comment:

  1. Great post!! This can be one particular of the most useful blogs We’ve ever arrive across on this subject. Basically Wonderful. I am also a specialist in this topic so I can understand your hard work.

    Sharepoint Training in Chennai



Blog Archive