Reader Level:
Articles

Title, description and navigation for SharePoint list using PowerShell

By Vijai Anand on April 11, 2011
In this article we will be seeing about the Title, description and navigationfor SharePoint list using PowerShell and c#.
  • 0
  • 0
  • 5093

In this article we will be seeing about the Title, description and navigationfor SharePoint list using PowerShell and c#.

Go to Document Library => Library Settings => General Settings =>Title, description and navigation.

TShare1.gif

Name and Description:

TShare2.gif

Navigation:

TShare3.gif

Using C#


using (SPSite site = newSPSite("http://serverName:1111/"))
            {
using (SPWeb web = site.RootWeb)
                {
SPListlibGeneralSettings= web.Lists["Doc Library"];
libGeneralSettings.Title = "Doc Library Updated";
libGeneralSettings.Description = "My updated Doc Library";
libGeneralSettings.OnQuickLaunch = false;
libGeneralSettings.Update();

                }
            }

Using PowerShell script:

$site=Get-SPSite "http://serverName:1111/"
$web=$site.RootWeb
$list=$web.Lists["Doc Library"]
$list.Title="Doc Library Updated"
$list.Description="My updated Doc Library"
$list.OnQuickLaunch = $false
$list.Update()

Vijai Anand

Vijai Anand has been working in IT industry for over 5 years. He holds Bachelor's degree in Electronics and Communication Engineering. Vijai write articles and blogs related to SharePoint 2013, SharePoint 2010, Silv... Read more

COMMENT USING

Trending up