Wednesday, October 14, 2015

How to get SharePoint PowerPivot gallery using PowerShell

$SPsite = Get-SPSite http://contoso.com
$SPwebs = $s.AllWebs
foreach($web in $SPwebs)
{
foreach($SPLibrary in $web.Lists)
{
if($SPLibrary.BaseTemplate -eq "10002")
{
            Write-Host $SPLibrary.Title
        }   
       
    }
}

No comments:

Post a Comment