Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

changing path for logos for all the site collections within a web app

$
0
0

Fellow SP users,

I am changing path to logo for all the site collections for 3 different farms. Each farm has a web application containing 80+ site collections and many sub-sites within a site collection.

All I need to do is change the path (since logo has been changed) from sharepoint location to /_layouts/images/logo instead of http://siteurl/publishingimage

I got the following code but it changes the logo file name which I dont need to do. I just want to change the path. Any ideas?

$site = Get-SPSite http://urlToSiteCollection

$site.AllWebs | foreach { $_.SiteLogoUrl = "/SiteAssets/NewLogo.jpg"; $_.Update()

Not all the site collections have same logo. Some of the legacy sites we maintain has legacy logo and we like to keep them as it is. that's why I just want to change the path and I have 10 different images (logos) in the _layouts/images/logo directory on all SP servers.



Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>