Friday 8 November 2013

Get all library name in sharepoint using powershell

Share it Please

$s = Get-SPSite http://abcd:1111/sites/Demo1/
$wc = $s.AllWebs
foreach($w in $wc)
{
foreach($l in $w.Lists){
if($l.BaseTemplate -eq "DocumentLibrary")
{
Write-Host $l.Title"(Web: "$w.Title")"
}
}
}

No comments:

Post a Comment

Followers

Follow The Author