Change the SharePoint site theme using PowerShell


Using PowerShell

$site=Get-SPSite "http://serverName:1111/sites/sample"
$web=$site.OpenWeb()
$theme = [Microsoft.SharePoint.Utilities.ThmxTheme]::Open($site,"_catalogs/theme/Azure.thmx")
$theme.ApplyTo($web,$false)
$web.Update()
$web.Dispose()
$site.Dispose()
            


Programmatically change the site theme in SharePoint refer http://www.c-sharpcorner.com/UploadFile/anavijai/6989/