摘要:
cls$featureID = (Get-SPFeature | ?{ ($_.DisplayName -eq "SiteNotebook") -and ( $_.Scope -eq "Web")}).id$sites = Get-SPSite foreach($Site in $sites){ $webs = $Site.AllWebs foreach($Web in $web... 阅读全文
摘要:
clear $PSSnapin = Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | Out-Null$webAppUrl = Read-Host$WebApp = Get-SPWebApplication $webAppUrlForeach ($SiteColl in $WebApp.S... 阅读全文