Script in PowerShell per cambiare il logo di tutti i siti di una site collection di SharePoint 2010

PowerShell

$webUrl = "http://sharepoint2010/sites/CV"
$logoUrl = "/_layouts/images/sgart/logo.png" 

$s= Get-SPSite $webUrl

$s.AllWebs | ForEach-Object {
	$w = Get-SPWeb $_.Url
	Write-host $w.url
	Write-host $w.SiteLogoUrl
	
	$w.SiteLogoUrl=$logoUrl
	$w.Update()
	Write-host "Replaced with " $w.SiteLogoUrl
	$w.Dispose()
}
Tags:
PowerShell200 SharePoint498 SharePoint 2010224
Potrebbe interessarti anche: