Change Sharepoint Site Collection Logo with Powershell Tutorial

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:

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 :

It also changed the logo of the my  Record Center Subsite. 
No ratings yet.

Please rate this

 
Comments
Amit Kumar Verma

Great!!!

It works for me.

Thanks

Leave a Reply