Powershell Commands For RSS Feed
Hi everyone.
I am trying to figure out how we can modify/change RSS feeds via the powershell. So far, nothing that works with mail or mailboxes seems to work with the RSS feeds. For example:
I tried to run this command -
get-mailbox -Identity JoeBloggs -resultsize unlimited | Get-MailboxFolderStatistics -folderscope all | where {$_.FolderPath -like "/RSS Feeds/Microsoft at Home"} | FT @{label=”User”;expression={$_.Identity}},@{label=”Items”;expression={$_.ItemsInFolder}},FolderSize
Normally if I put in "/Junk Email" or "Inbox" where "RSS Feeds/Microsoft at Home" is in the above example it will tell me what I want to know about the folder.
Or another example:
Get-MailboxFolderStatistics JoeBloggs | where {$_.FolderPath -like "/RSS Feeds/Microsoft at Home"}
Again, it doesn't work unless I use one of the standard folder names.
I also tried:
Export-Mailbox -Identity JoeBloggs -IncludeFolders '\RSS Feeds\Microsoft at Home' –PSTFolderPath C:\Test\test.pst
That didn't work either.
I did get results from:
Get-Mailbox -resultsize unlimited | Get-MailboxFolderStatistics -FolderScope RssSubscriptions
However, that lists ALL RSS subscriptions in the users mailbox, I just want the one specific one and want to delete older items in that folder.
How can one find out about the data being stored on the Exchange server from a specific RSS feed? More importantly, how can you delete older messages if the user is not doing it?
Thanks in advance!
July 26th, 2010 3:45pm
Hi,
with -like operator u shud use * in your value like this
$_.FolderPath
-like "*/RSS Feeds/Microsoft at Home*"
see
if it works.
Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2010 3:49pm
I tried that earlier, sorry , forgot to mention it in the original post.
I tried asterisk (*) in front, behind, and even tried the hash (#) just to make sure.
That being said I found a command that DID work and return the information I needed:
get-mailboxfolderstatistics -identity JoeBloggs | where {$_.Name -match "Microsoft at Home" }
The only problem is how does one delete said folder once you find it?
July 26th, 2010 4:05pm
I was able to figure out a work around for the issue. I setup a mailbox management policy and applied it to the RSS feeds to delete all items. At the same time we used a GPO to disable users from being able to turn on RSS feeds in Outlook.
Free Windows Admin Tool Kit Click here and download it now
July 28th, 2010 2:05pm