theme-sticky-logo-alt

Changing Sharepoint 2010 site’s theme using PowerShell

1 Comment

Hi,

Here is another post about how to customize your SharePoint 2010 site.  The last one was about how to change the CSS of your SharePoint Site by PowerShell.

This script shows you how you can change the Theme of your site using PowerShell.

$mainurl = “http://vlad.test.loc”

$themeName = “Azur”

$site = new-object Microsoft.SharePoint.SPSite($mainurl)
$web = $site.OpenWeb()
$theme = [Microsoft.SharePoint.Utilities.ThmxTheme]::Open($site,”_catalogs/theme/” + $themeName + “.thmx”)
$theme.ApplyTo($web,$false)
$web.Update()
$web.Dispose()
$site.Dispose()

Enjoy and Say Thanks if it helped :)!

Previous Post
Changing the CSS Style of a SharePoint Site
Next Post
SharePoint 2013 Review Download

1 Comment

Leave a Reply

15 49.0138 8.38624 1 0 4000 1 https://vladtalkstech.com 300 1