none
Please help~~~~ How can i use the powershell to set the "Newfeed" check box value? RRS feed

  • Question

  • Hi All,

    I use SP2010 SP1, it add a new "Newfeed" section in My Site Settings.

    This option is disabled (unchecked) by default. How can i use the powershell to set the "Newfeed" check box value??? Urgent, please help me

     

    Thanks

    Friday, October 14, 2011 9:16 AM

Answers

  • I'd suggest to do it manually, I reflected the code behind of that particular page and it uses alot of internal stuff to set that property.
    Since it is just set once for an entire farm I personally would leave it as a manual step, because in my opinion the gain is not worth the effort nor risks.

    If you do want to do it, the class you need to look at is this one:

    public
     class PersonalSites : ProfileAdminPage

     

    Name:

     

    Microsoft.SharePoint.Portal.UserProfiles.AdminUI.PersonalSites

    Assembly:

     

    Microsoft.SharePoint.Portal, Version=14.0.0.0

     


    Blog: Skavi
    • Marked as answer by GuYuming Tuesday, October 18, 2011 8:25 AM
    Friday, October 14, 2011 9:32 AM

All replies

  • I'd suggest to do it manually, I reflected the code behind of that particular page and it uses alot of internal stuff to set that property.
    Since it is just set once for an entire farm I personally would leave it as a manual step, because in my opinion the gain is not worth the effort nor risks.

    If you do want to do it, the class you need to look at is this one:

    public
     class PersonalSites : ProfileAdminPage

     

    Name:

     

    Microsoft.SharePoint.Portal.UserProfiles.AdminUI.PersonalSites

    Assembly:

     

    Microsoft.SharePoint.Portal, Version=14.0.0.0

     


    Blog: Skavi
    • Marked as answer by GuYuming Tuesday, October 18, 2011 8:25 AM
    Friday, October 14, 2011 9:32 AM
  • The actual setting is done by the SetNewsFeedEnabled method in UserProfileApplicationProxy class. The method is has access modifier internal, you don't have access to the method in PowerShell environment.
    Tuesday, October 18, 2011 8:28 AM