Hello
Our company sharepoint (Office 365) contains also several RSS feeds.
How it is possible to download xml file out of this feed (website) using PowerShell?
I can authenticate with sharepoint using CSOM but do not what to do next.
As service user is not administrator I cannot use "SPOService".
This script works OK for standard website, but not for Sharepoint.
$doc = New-Object System.Xml.XmlDocument
$doc.Load("http://www.{CompanySite}.com/feed/")
$doc.save("C:\temp\feed.xml")
I am getting this error when using for company Sharepoint:
"The remote server returned an error: (403) Forbidden."
Thanks for your time considering this question.
Jozin
Download RSS feed as xml file from Sharepoint Online using PowerShell
April 17th, 2015 11:05am
don't use the object model at all.. just use System.Net.WebClient, set credentials, and then DownloadString.
Free Windows Admin Tool Kit Click here and download it now
April 17th, 2015 12:44pm