This is the option that I want to change via Powershell
Thanks!
Adding to Robert's answer, which is correct for SharePoint online environment , if you have 2013 On Premise environment, you can use the below code:
$web = Get-SPWeb "https://sharepoint/sites/blog"
write-host $web.Properties["ms-blogs-skinid"]
$web.Properties["ms-blogs-skinid"] = 1
$web.Properties.update()
Valid values for ms-blogs-skinid: 0,1,2
Also, in case its SharePoint online and you dont want to use PnP, use it as below:
$SiteUrl = "https://tenant.sharepoint.com/teams/blog"
$context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteUrl)
$context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($credential.UserName, $credential.Password)
$web = $context.Site.RootWeb
$props = $web.AllProperties
$web.AllProperties["ms-blogs-skinid"] = "0"; # use 1 or 2 based on your requirement
$web.Update()
$context.ExecuteQuery()
First install the Dev PnP Powershell tools:
https://github.com/officedev/PnP-PowerShell
Choose the correct MSI for your environment:
Then use the following Powershell commands (don't forget to fill in the correct values for the two variables in the first two lines of the script):
$SitecollectionUrl = "https://yourhostname/sites/test"
$RelativePathToBlogSite = "/sites/test/blog"
connect-sponline $SitecollectionUrl
$web = get-pnpweb $RelativePathToBlogSite
Set-PnPPropertyBagValue -web $web -key ms-blogs-skinid -Value 1
Values: