Change SharePoint Site Title, Description and Icon (Logo) with PowerShell
It’s not necessary to continue with the name and description Administrators provide during the creation of the site, isn’t it? Let’s see how we can change the SharePoint site’s Title, Description, and Icon (Logo) from SharePoint Interface as well as using PowerShell.
How to Change the Logo in SharePoint from Web Interface?
Go to Site Actions >> Site settings >> Click on Title, description, and icon Link under “Look and Feel”, Change the name and description as per your requirements!
Change SharePoint Site Title, Description, and Icon with PowerShell
#Get the Web
$Web= Get-SPWeb "https://your-sharepoint-site.com"
#Set the Title & Description
$Web.Title = "Marketing Portal"
$Web.Description = "Marketing Portal"
#You can change the Quick Launch/Treeview navigation also (If its not a Publishing site):
$Web.TreeViewEnabled = $True
#Update the changes
$web.Update()
How to Change Logo in SharePoint Site?
When we create SharePoint sites, it comes with a default logo image from /_layouts/images/siteIcon.png(SharePoint applies this logo when LogoURL property is empty!). We can change it to reflect our own branding so that it can be easily recognized. I needed to apply a new logo for all SharePoint sites during a corporate re-branding project.
Instead of manual way, I want to do this change with PowerShell script to update all site collection’s Logo icons. Here is my quick PowerShell script to apply and verify the logo for all SharePoint sites:
#Get the Site
$web = Get-SPWeb "https://your-sharepoint-site.com"
#Set Site Logo Icon
$web.SiteLogoUrl = "https://your-sharepoint-site.com/SiteAssets/Corp-logo.png"
#Set Logo Description
$web.SiteLogoDescription = "Corporate Logo for Your Company"
#To Set Alternate CSS URL, Use:
#$Web.AlternateCssUrl = "/_layouts/1033/styles/CustomStyles.css
#Update the changes
$web.Update()
Logo can be from any SharePoint Library (such as Assets Library), make sure all users have read access to the Logo file. Or it can be from 14 Hive’s Images Folder (Recommended!) “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES”. Once uploaded, We can refer to it by providing URL: /_layouts/images/YourLogo.png
Important:
When you place Logo Inside Images folder, make sure its inheriting security (Go to Logo file’s Properties >> Security >> Advanced >> Make sure “Include Inheritable Permissions from this object’s Parent” is selected. If not, click on “Change Permissions” button and enable “Include Inheritable Permissions from this object’s Parent”)! Otherwise, End-users may get Log-on prompts and page may stop loading.
To Get Logo Information of entire web application:
Get-SPWebApplication "https://your-sharepoint-URL.com" | Get-SPSite | Get-SPWeb |
foreach { "Site "+ $_.Url + " Logo URL: " + $_.SiteLogoUrl }
To Change Logo For All Sites in a Web Application:
Get-SPWebApplication "https://your-sharepoint-URL.com" | Get-SPSite | Get-SPWeb |
foreach { $_.SiteLogoUrl = "/_layouts/Images/Corp-Logo.png"; $_.Update() }
To Change Logo for All sites in a Site Collection:
Get-SPSite "https://your-sharepoint-URL.com" | Get-SPWeb |
foreach { $_.SiteLogoUrl = "/_layouts/Images/Corp-Logo.png"; $_.Update() }
Ideally, Its a best practice to apply Logos as part of Branding.
Hello Salaudeen, your content is amazing, thank you for contributing so much with our SharePoint community.
I have a question, if I set up a logo and inherit it to all subsites of my collection as you showed above, but after some time the management change their mind and want to get back to the old initial letters logo for each subsite, is there a way to reverse this logo inheritance and get back with the initial letters of each subsite name?
It was very helpfull!
I have one scenario where i have to replace existing title of the site with existing site description using powershell ?
Something like $web.Title = Sweb. Description
Yes! That should work. Use:
$Web= Get-SPWeb “https://your-sharepoint-site.com”
$Web.Title = $web.Description
$web.Update()
Very useful! Thank you!