SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm searching for a powershell script to link/redirect all the logos of the sites to site collection root.

I know that I can code in master page file, like this solution ( but can I do it better, using PowerShel?

Please help me! Thanks!

share|improve this question

You only need to run one line of PowerShell to set all the site logos on SharePoint sites in a site collection (much easier than setting them by hand).

(Get-SPSite http://SiteCollectionUrl).AllWebs | foreach {$_.SiteLogoUrl = "the path of your logo.gif"; $_.Update()}
share|improve this answer
It did not work for me. The code executed properly. But subsite is still going to its homepage instead of root site's homepage. – user26907 May 16 '14 at 16:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.