Remove the SharePoint site theme using powershell

Using powershell remove the site theme

The site theme will be changed to Default(No theme).

$site=Get-SPSite "http://ctsinmbpmoss:1111/sites/sample"
$web=$site.OpenWeb()
[Microsoft.SharePoint.Utilities.ThmxTheme]::RemoveThemeFromWeb($web,$false)
$web.Update()
$web.Dispose()
$site.Dispose()
              
Ebook Download
View all
Learn
View all