In a SharePoint site collection, Site logo can be easily changed by going to site settings –> Look and Feel –> and click Title, Description and Logo. But if there are multiple sub sites then it going to be a hassle to go to each site and perform this action.

Sharepoint Change site logo

To minimize this effort, we can go with PowerShell cmdlets where a simple script can do the task for us. The PowerShell script is different for both online and on-premise environments. In this blog post I am sharing the PowerShell script which will work for SharePoint on-premise.

Below is the PowerShell which can update site logo for all the sub sites under a site collection, this script has been testing on SharePoint 2010, SharePoint 2013 and SharePoint 2016.

if ((Get-PSSnapin “Microsoft.SharePoint.PowerShell” -ErrorAction SilentlyContinue) -eq $null)
Add-PSSnapin “Microsoft.SharePoint.PowerShell”
$sitename= “http://Sp2016”
$sitelogo= “/siteAssets/NewLogo.jpg”
$site=new-object Microsoft.SharePoint.SPSite($sitename)

foreach($web in $site.Allwebs) {

Adnan, a distinguished professional, boasts an impressive track record as a Microsoft MVP, having achieved this prestigious recognition for the eighth consecutive year since 2015. With an extensive career spanning over 18 years, Adnan has honed his expertise in various domains, notably excelling in SharePoint, Microsoft 365, Microsoft Teams, the .Net Platform, and Microsoft BI. Presently, he holds the esteemed position of Senior Microsoft Consultant at Olive + Goose. Notably, Adnan served as the MCT Regional Lead for the Pakistan Chapter from 2012 to 2017, showcasing his leadership and commitment to fostering growth within the tech community. His journey in the realm of SharePoint spans 14 years, during which he has undertaken diverse projects involving both intranet and internet solutions for both private and government sectors. His impact has transcended geographical boundaries, leaving a mark on projects in the United States and the Gulf region, often collaborating with Fortune 500 companies. Beyond his roles, Adnan is a dedicated educator, sharing his insights and knowledge as a trainer. He also passionately advocates for technology, frequently engaging with the community through speaking engagements in various forums. His multifaceted contributions exemplify his dedication to the tech field and his role in driving its evolution.

Leave a Reply

7 replies on “Changing site logo for all sub sites in a Site collection”