Change Sharepoint Site Collection Logo with Powershell Tutorial

When you create a SharePoint site, it comes with the orange logo icon.   You can easily change it by using Powershell and an image that’s already on the site.  Here is how:

Original Logo:

TestWebsite site collection in SharePoint 2010 with the default orange site logo before the PowerShell change

The PowerShell Code:

$mainurl = “http://vlad.test.loc”

$Web = Get-SpWeb $mainurl

Write-Host -ForegroundColor White ” – Changing the logo of sites …” -NoNewline

$sitename= $mainurl

$sitelogo= $mainurl + “/PublishingImages/powershell.jpg”

$site=new-object Microsoft.SharePoint.SPSite($sitename)

foreach($web in $site.Allwebs) {

$web.SiteLogoUrl=$sitelogo

$web.Update()

}

$site.Dispose()

 Write-Host -ForegroundColor GREEN “Done.”

  Write-Host

Result :

TestWebsite site collection in SharePoint 2010 now showing the blue PowerShell icon as its site logo

It also changed the logo of the my  Record Center Subsite. 

Records Center Site subsite header in SharePoint 2010 also showing the new PowerShell icon logo