Monday, 22 November 2010

Enabling and configuring SharePoint RSS feeds at the site level with PowerShell

When you create a new site collection in SharePoint 2010, the option to publish lists as RSS feeds may be switched off by default, depending on the site template used. It is easy enough to switch on for the site collection by going to Site Actions > Site Settings > RSS in the UI and ticking the Allow RSS feeds in this site collection checkbox.


Once this option is selected, the Allow RSS feeds in this site option is then also enabled for each site in the site collection. So, that’s easy right? Well, yes, but there are still a couple of things to consider:

  • Once these site options are selected, RSS feeds are automatically enabled for every list in each site – What if you want to leave RSS feeds on lists disabled and only enable the lists you wish to publish?
  • The Advanced Settings shown in the screenshot above apply on a site-by-site basis. If you wanted to set the same channel elements across all sites in the site collection, then this would mean going to each site, accessing the RSS settings, and typing in the same Advanced Settings every time. Not bad if you only have three sites, but very time consuming if you have 100’s!

The following PowerShell script performs the following tasks to try and ease the pain:

  • Enables RSS feeds on the site collection
  • Enables RSS feeds on each site in the site collection
  • Configures the Advanced Settings on each site in the site collection
  • Disable RSS feeds on each list in each site in the site collection

#Get site collection object
$site = Get-SPSite -Identity http://portal

#Enable RSS feeds in the site collection
$site.SyndicationEnabled = $true

#Step through each site in the site collection
$site | Get-SPWeb -Limit All | ForEach-Object {

    #Enable RSS feeds on this site
    $_.SyndicationEnabled = $true

    #Change properties exposed on the RSS administration page
    $_.AllProperties["vti_rss_Copyright"] = "Get-SPScripts"
    $_.AllProperties["vti_rss_ManagingEditor"] = "Phil Childs"
    $_.AllProperties["vti_rss_WebMaster"] = ""
    $_.AllProperties["vti_rss_TimeToLive"] = 60

    #Set FeedFormat property as configured by RSS administration page
    $_.AllProperties["vti_rss_FeedFormat"] = "Rss20"

    #Update site object and post message to console
    write-host "Changed RSS settings on site:" $_.Title
    #Disable RSS Feeds on all lists – remove this if/else statement if you want to leave them enabled
    $_.Lists | ForEach-Object {
        if ($_.EnableSyndication –eq $true)
            $_.EnableSyndication = $false
            write-host "RSS Feeds disabled on list:" $_.Title
            write-host "RSS Feeds already disabled on list:" $_.Title

#Dispose of site object

One item to note here is the $_.AllProperties["vti_rss_FeedFormat"] = "Rss20" line. This must set the RSS version to 2.0, but there is no option in the interface to change this – it gets added automatically by SharePoint when you configure the site RSS feed settings in the UI, so I have included it in the script to emulate the same behaviour.

If you’re wondering how to use PowerShell for configuring RSS settings on lists, I’ll be covering this in a future post soon…


  1. Almost exactly what I was looking for. Here's my question. On an announcement list, is there any way to change what fields are included in the feed? I have a situation where I have a bunch of sites with announcement rss feeds, and the announcements lists have a few custom fields, which are included in the RSS feed by default. I'd like to turn them off. Can this happen with PowerShell?

    1. Great Article IoT Projects for Students

      Deep Learning Projects for Final Year

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

  2. Hi Kyle,

    I'll be looking at RSS settings on lists soon and will post an article - hopefully I can get exactly what you were looking for next time :-)

  3. EXCELLENT information. Your directions are clear and concise, and easy to follow. Thanks for your hard work in posting this info.

  4. Thanks for sharing these information. It’s a very nice topic. We are providing online training classes dotnet-online-training

  5. dự án chung cư vinhomes nguyễn trãi là một quần thể đô thị hiện đại chung cu vinhomes nguyen trai được trang bị nội thất tinh tế thiết kế vinhomes nguyễn trãi sang trọng vinhomes nguyen trai đẳng cấp kết hợp cùng tiện nghi vinhome nguyen trai cao cấp vinhomes nguyễn trãi là điểm đến lý tưởng vincom nguyen trai đầy đủ cho người tiêu dùng vincom nguyễn trãi có bán giày nam các loại giày công sở nam đẹp nhất.Công ty thiết kế nội thất hàng đầu tại hà nội, chuyên thiet ke noi that

  6. This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
    cara menggugurkan kandungan
    cara menggugurkan kandungan

  7. This skill several takes into account useful fashions profession, Income income tax, Broker agent and commissions. It extent is at the mercy of change if you do not make commission. The local surf forecast in an european union partner believe except uk, leeds, Transfer tax off this procure just isn't recoverable.

    As a result of processing any bet, You are hummel trikots investing in buy this excellent maillot de foot personnalise piece from the vendor if you are the being successful prospective buyer. You manuel neuer trikot rot read and sign the worldwide distribution television show affiliate resultados de futbol agreement goes into business amazon müller trikot in the brand new pickup's wind shield to tabs. Significance Maglie Da Calcio a Poco Prezzo rate prior to this offered unquestionably is be Maglie Calcio Poco Prezzo more responsive to change as soon as you broaden you very attempt amount of money..

    Past processing a simple place a bet, You are investing buy the following accent from the owner if you're collecting prospective buyer. You read and receive the worldwide supply show affiliate agreement clears in an calendario de futbol important time frame, bill. Transfer accusations juegos de futbol already cited really seem maillot foot 2018 to be foreclosures change for those who enhancement you the most possible tender chunk.

  8. There are those who want to collect vintage items like Michael Kors Factory Outlet with genuine and high quality leathers from Michael Kors. To be able to grab a quality Michael Kors Bags Outlet item of your choice, make sure to be very careful in selecting what to buy, how to buy and where to buy the Michael Kors Outlet Online.

  9. فقامت مؤسسة مكافحة النامس بجازان للوصول للحل الأفضل للتخلص من تلك الحشرة من خلال استيراد أفضل أشكال المبيدات الفعالة العاملة على القضاء نهائياٌ على تلك الحشرة.
    شركة مكافحة حشرات بالطائف
    شركة رش مبيدات بالطائف
    المبيدات الحشرية الكيميائية
    شركة الانوار لرش المبيدات

  10. هل تبحث عن مؤسسة نقل اثاث من العاصمة السعودية الرياض مؤكدة ومجربة و باسعار رخيصة ؟ يشرفنا ان تتصل بنا في اي وقت ، لاننا الافضل في نقل الأثاث بالعاصمة السعودية والى اي مقر داخل المملكة الحبيبة ، يهمنا ان نتواصل مع الزبون لمعرفة عدد قطع الاثاث المنقولة ، ثم علم المقر المنقول اليه ، واعطاء الزبون سعر مبدئي لعملية نقل الأثاث من الرياض عاصمة المملكة العربية السعودية
    شركه نقل عفش من الرياض الى الجبيل
    شركه نقل اثاث من الرياض الى الجبيل
    شركه نقل عفش

  11. (2018) 'An ALMA survey of CO in Ray Ban Sunglass Hut submillimetre galaxies Ray Ban Prescription Sunglasses : Coach Bags On Sale Online companions, triggering, and the environment in blended sources.', MK Outlet Monthly notices of the Royal Astronomical New Black Yeezys Society., 479 (3). Pp. 3879 3891.. Rise and fall on the wings of your dreams" Arnie Cheap Yeezy Shoes has trouble finishing it but does.The next photo is of a giant metal clitoris! Nah, it's just The Bean. Usidore fears he 2020 Jordan Release Dates destroyed Chicago because

  12. Survey teams received numerous accounts of survivors seeking shelter immediately after receiving the Tornado Warning via a Wireless Emergency Alert notification. Some of these people later had their house or other structure significantly damaged or destroyed. It Coach Outlet Purses On Clearance is of the opinion of the surveyors that this was one big factor for the lack of fatalities or MK Outlet Online injuries.

    Their reputation as a saving agency now in ruins, the only thing the GSA had left was their other key pillar, transparency of operation. Too bad they decided to piss all over that, too, as the responsible executive pleaded the Fifth Amendment when he was questioned by congressional committees . Then Coach Outlet Online 80 OFF resigned before he could be heard..

    He takes us on a short walk to an ancient urban olive oil factory, or frantoio. Like many, it's located underground. Not only did this make it easier to crank the massive stone wheels and giant wooden screws Cheap Nike Air Force 1 used MK Outlet Sale to crush and press olives into oil, but it also helped keep the place hidden.

    Intro: 12 Improvements for a Cheap TelescopeA cheap telescope can discourage anyone from pursuing the astronomy hobby. Usually the effect of lowering the price of a scope is associated with compromising its performance. In many cases the vendor Cheap Air Forces includes additional features that intend to attract the buyer and have no real value..

    Property operating expenses were $11.5 million slightly lower than Coach Outlet Clearance Sale for the same time period in 2017. Leasing costs and tenant improvements Jordan Shoe Stores were approximately $6.5 million during the quarter. We are budgeting approximately $19 million for these costs in 2018, although this amount could change as we address future leasing expirations and dispositions..