CKS:EBE set blog settings from powershell

Topics: Enhanced Blog Edition
Feb 19, 2009 at 2:46 PM
Hi,
I'm currently trying to change the CK:EBE settings from powershell. As we would like to deploy a number of blogs, we would like to provision the contact email address at deployment time.
In order to do that, I found the following article on how to set properties: http://www.sharepointblogs.com/roni/archive/2007/08/27/moss-2007-using-property-bag-of-spweb-to-store-metadata.aspx
My script look like this:

$web = get-spweb http://blogsdev.xxx.com/Name
$web.Properties["ContactEmail"]="Name@xxx.com"
$web.update()

When retrieving the properties, it appears properly:
$web.Properties
Name                           Value               
----                           -----               
contactemail                   Name@xxx.com
vti_extenderversion            12.0.0.6219         
vti_associatevisitorgroup      5                   
vti_defaultlanguage            en-us       

Unfortunately, it doesn't show up correctly on the web interface. I feel like I'm trying to update the wrong properties.
any hint is welcome!

Developer
Apr 2, 2009 at 4:28 PM
Pretty close, but the EBE settings are different...

Below is a list taken from settings.cs

public
bool CachingEnabled
        {
            get { return BoolValue("_cksBlogCachingEnabled");}
            set { WebProperties["_cksBlogCachingEnabled"] = value.ToString(); }
        }

        public bool PingbacksEnabled
        {
            get { return BoolValue("_cksBlogPingbacksEnabled"); }
            set { WebProperties["_cksBlogPingbacksEnabled"] = value.ToString(); }
        }

        public bool TrackbackReceiptEnabled
        {
            get { return BoolValue("_cksBlogTrackbackReceiptDisabled"); }
            set { WebProperties["_cksBlogTrackbackReceiptDisabled"] = value.ToString(); }
        }

        public bool DisableSelfTrackbacks
        {
            get { return BoolValue("_cksBlogDisableSelfTrackbacks"); }
            set { WebProperties["_cksBlogDisableSelfTrackbacks"] = value.ToString(); }
        }

        public bool MtfEnabled
        {
            get { return BoolValue("_cksBlogMtfEnabled"); }
            set { WebProperties["_cksBlogMtfEnabled"] = value.ToString(); }
        }

        public int PageOutputCacheTimeout
        {
            get { return IntValue("_cksBlogPageOutputCacheTimeout"); }
            set { WebProperties["_cksBlogPageOutputCacheTimeout"] = value.ToString(); }
        }

        public bool ThemeWikiPages
        {
            get { return BoolValue("_cksThemeWikiPages", false); }
            set { WebProperties["_cksThemeWikiPages"] = value.ToString(); }
        }

        public bool ThemeAllAspxPages
        {
            get { return BoolValue("_cksThemeAllAspxPages", false); }
            set { WebProperties["_cksThemeAllAspxPages"] = value.ToString(); }
        }

        public bool UseSiteCollectionThemes
        {
            get { return BoolValue("_cksUseSiteCollectionThemes",false); }
            set { WebProperties["_cksUseSiteCollectionThemes"] = value.ToString(); }
        }

        public string PageOutputCacheVaryByParam
        {
            get { return WebProperties["_cksBlogPageOutputCacheVaryByParam"]; }
            set { WebProperties["_cksBlogPageOutputCacheVaryByParam"] = value; }
        }

        public bool BlogExtensionsEnabled
        {
            get { return BoolValue("_cksBlogExtensionsEnabled"); }
            set { WebProperties["_cksBlogExtensionsEnabled"] = value.ToString(); }
        }

        public bool DeleteSpamComments
        {
            get { return BoolValue("_cksBlogDeleteSpamComments"); }
            set { WebProperties["_cksBlogDeleteSpamComments"] = value.ToString(); }
        }

        public bool DisableConvertClientDates
        {
            get { return BoolValue("_cksBlogPreventConvertClientDates"); }
            set { WebProperties["_cksBlogPreventConvertClientDates"] = value.ToString(); }
        }

        public bool EnableCaptchaComments
        {
            get { return BoolValue("_cksBlogEnableCaptchaComments"); }
            set { WebProperties["_cksBlogEnableCaptchaComments"] = value.ToString(); }
        }

        public bool TrimPostBodyOnLists
        {
            get { return BoolValue("_cksBlogTrimPostBodyOnLists"); }
            set { WebProperties["_cksBlogTrimPostBodyOnLists"] = value.ToString(); }
        }

        public bool TrimPostBodyOnRss
        {
            get { return BoolValue("_cksBlogTrimPostBodyOnRss"); }
            set { WebProperties["_cksBlogTrimPostBodyOnRss"] = value.ToString(); }
        }

        public string AkismetKey
        {
            get { return WebProperties["_cksAkismetKey"]; }
            set { WebProperties["_cksAkismetKey"] = value; }
        }

        public string HomePage
        {
            get { return (string.IsNullOrEmpty(WebProperties["_cksHomePage"])) ? "home.aspx" : WebProperties["_cksHomePage"]; }
            set { WebProperties["_cksHomePage"] = value; }
        }

        public string ProxyPort
        {
            get { return WebProperties["_cksProxyPort"]; }
            set { WebProperties["_cksProxyPort"] = value; }
        }
       
        public string ProxyUrl
        {
            get { return WebProperties["_cksProxyUrl"]; }
            set { WebProperties["_cksProxyUrl3"] = value; }
        }

        public string BlogThemeVariation
        {
            get { return WebProperties["_cksBlogThemeVariation"]; }
            set { WebProperties["_cksBlogThemeVariation"] = value; }
        }

        public string BlogTheme
        {
            get { return WebProperties["_cksBlogTheme"]; }
            set { WebProperties["_cksBlogTheme"] = value; }
        }

        public string BlogTransformParameter1
        {
            get { return WebProperties["_cksBlogTransformParameter1"]; }
            set { WebProperties["_cksBlogTransformParameter1"] = value; }
        }

        public string BlogTransformParameter2
        {
            get { return WebProperties["_cksBlogTransformParameter2"]; }
            set { WebProperties["_cksBlogTransformParameter2"] = value; }
        }

        public string BlogTransformParameter3
        {
            get { return WebProperties["_cksBlogTransformParameter3"]; }
            set { WebProperties["_cksBlogTransformParameter3"] = value; }
        }

        public string CustomRSSFeedUrl
        {
            get { return WebProperties["_cksBlogCustomRSSFeedUrl"]; }
            set { WebProperties["_cksBlogCustomRSSFeedUrl"] = value; }
        }
       
        public bool SecureSystemPages
        {
            get { return BoolValue("_cksSecureSystemPages"); }
            set { WebProperties["_cksSecureSystemPages"] = value.ToString(); }
        }

        public bool RedirectPostAspx
        {
            get { return BoolValue("_cksRedirectPostAspx"); }
            set { WebProperties["_cksRedirectPostAspx"] = value.ToString(); }
        }

        public bool ThemeSelectorEnabled
        {
            get { return BoolValue("_cksThemeSelectorEnabled"); }
            set { WebProperties["_cksThemeSelectorEnabled"] = value.ToString(); }
        }

        public string ContactEmail
        {
            get { return WebProperties["_cksBlogContactEmail"]; }
            set { WebProperties["_cksBlogContactEmail"] = value; }
        }

        public string RssItemCount
        {
            get { return WebProperties["_cksBlogRssItemCount"]; }
            set { WebProperties["_cksBlogRssItemCount"] = value; }
        }

        public bool AutoApproveComments
        {
            get { return BoolValue("_cksBlogAutoApproveComments"); }
            set { WebProperties["_cksBlogAutoApproveComments"] = value.ToString(); }
        }

        public bool TechnoratiLinks
        {
            get { return BoolValue("_cksTechnoratiLinks"); }
            set { WebProperties["_cksTechnoratiLinks"] = value.ToString(); }
        }

        public string PDFExportLicenseKey
        {
            get { return WebProperties["_cksPDFExportLicenseKey"]; }
            set { WebProperties["_cksPDFExportLicenseKey"] = value; }
        }