Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
$site = Get-SPSite("http://testurl")
$OutArray = @()
foreach($web in $site.AllWebs)
{
$list = $web.Lists.TryGetList("Sayfalar")
$listitems = $list.Items | where {$_['_ModerationStatus'] -eq 0}
$Count = $listitems.Count
Write-Host $web.Url ">>" $Count
}
Hiç yorum yok:
Yorum Gönder