Set site logo in Sharepoint

21/11/2013 13:56

#Logo file was uploaded to $logoUrl by 'Upload' script

#Sets logo for web

param($webUrl, $logoUrl)

Heading $script:MyInvocation.MyCommand.Name

$web = Get-SPWeb $webUrl

"Setting logo '{0}' for '{1}...'" -f $logoUrl, $webUrl

$web.SiteLogoUrl = $logoUrl

$web.Update()

$web.Dispose()