Title, description and navigation for SharePoint list using PowerShell

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

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


















Name and Description:











Navigation:





Using C#

  1. using (SPSite site = newSPSite("http://serverName:1111/"))           

  2. {

  3. using (SPWeb web = site.RootWeb)               

  4. {

  5. SPListlibGeneralSettings= web.Lists["Doc Library"];

  6. libGeneralSettings.Title = "Doc Library Updated";

  7. libGeneralSettings.Description = "My updated Doc Library";

  8. libGeneralSettings.OnQuickLaunch = false;

  9. libGeneralSettings.Update();               

  10. }           

  11. }


Using PowerShell script:

  1. $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()

Recent Posts

See All