Wednesday, November 2, 2011

Display all SharePoint portal list and Library on Powershell Console.

Leave a Comment
Execute following script in power shell and you will get list of all lists and libraries in SPWeb

PS> $site = Get-SPSite("Site URL");
        $web = $site.OpenWeb();
        $lists = $web.Lists;
        
        $lists | ForEach-Object { Write-Host $_.Title -Foregoundcolor red };

 // Foregoundcolor red : To show output in red.

0 comments: