Advertisement
For every web application having list of site collection’s and its sub sites having a site logo, some
cases we need to change site logo only for a particular site collection and its
sub sites only.
Doing it manually it will take time and effort, using the
Power Shell we can change the site logo easily.
First I am uploading the site logo in a particular site
collection library, my case I am uploading a logo in publishing images library
(http://dotnetsharepoint.com/sites/changesitelogo/publishingimages)
Using this script we can change the logo in a site
collection and its sub sites.
Run the below Power Shell script.
Add-PSSnapin Microsoft.sharepoint.powershell
#to get the site collection url
$sitecollname="http://dotnetsharepoint.com/sites/changesitelogo"
#to get the site logo
$sitecolllogo= " http://dotnetsharepoint.com/sites/changesitelogo/publishingimages/dotnetsharepointlogo.png"
$getsitecoll=new-object
Microsoft.SharePoint.SPSite($sitecollname)
foreach($webs in $getsitecoll.Allwebs)
{
$webs.SiteLogoUrl=$sitecolllogo
$webs.Update()
}
$getsitecoll.Dispose()
Once the script completed successfully, go and verify the
logo has been changed.
021BC9FDBD
ReplyDeleteBeğeni Satın Al
Fake Takipçi
Tiktok Bot Basma
ReplyDeleteTürkiye'nin tarihi ve doğal güzellikleriyle öne çıkan bölgelerinden biri olan Kapadokya, özellikle peri bacaları ve yer altı şehirleri ile ziyaretçilerini büyülüyor. Bu bölgedeki doğal oluşumlar ve tarih boyunca çeşitli medeniyetlere ev sahipliği yapmış olması, gezginlere eşsiz bir deneyim sunuyor. Eğer bu güzellikleri keşfetmek isterseniz, https://bayanserik.space/ bölgesine yapacağınız ziyaretler büyük fark yaratacaktır. Ayrıca, bölgenin yerel lezzetleri ve kültürel etkinlikleri de gezinizin unutulmaz anılar arasında yer almasını sağlar.