Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 (http://samanalie.wordpress.com/2013/07/26/site-logo-link-to-root-site-collection-in-sharepoint-2013/) but can I do it better, using PowerShel?

Please help me! Thanks!

share|improve this question

1 Answer 1

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. –  Jhakir May 16 at 16:19

Your Answer

 
discard

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.