Use PowerShell to be notified for new blog post

Reply A+ A-

In this post I will show a little script that allows you to be notified when new content is available on a blog, site... from a list of site. It will allow you to set a list of blog (in an XML file) to check and be aware when something new has been published on one of them.

The idea is really simple. 
1 / You have an XML file that contains a list of blog.
2 / A script will analyze all RSS path from the XML and check if there is something news since x days or hours.
3 / If yes a notification will be displayed.
4 / A txt file containing all post links (as below) will be created on your desktop

How to get it ?

How does it work ?
Three things to do:
1 / Complete the XML with the list of blogs to check, days to check, notification type, logo...
2 / Choose the kind of notification you want to display, by filling the 
3 / The action should be to create a scheduled task that will run the script. For instance a daily scheduled task.

See below how my scheduled task is created:
Argument: "-windowstyle hidden -file "C:\ProgramData\SD_Blog_News\Check_Blogs.ps1""

Complete the XML
Proceed as below to fill the XML
1 / Copy the SD_Blog_News folder in c:\ProgramData
2 / Choose the number of days to check in the Config\DateToCheck node. For instance if you type 1, it will check for blog posts new than 1 day.
3 / Choose the kind of notification to display (see below to understand).
4 / Type the blog or site name in the Name node
5 / Type the blog link in the Path node
6 / Type the RSS path of the site in the RSS node
7 / If needed, choose a logo to display for each blog and copy them in the Logos folder
8 / Add the logo name with extension in the Logo node in the XML file

For instance, my XML looks like as below: 

Customize the notification
Different kinds of notification are available in the script.

Native Windows notification
Add option WindowsNotif in the Notification node from the XML.
New content will be displayed as below

WPF notification
Add option WPF in the Notification node from the XML.
In the title bar a button allows you to open the blog post in your browser.
New content will be displayed as below
BurntToast notification
Add option BurntToast in the Notification node from the XML.
New content will be displayed as below

website notification 3215570609012171244

Enregistrer un commentaire

Accueil item


Learn KQL in one month


You want to support me ?

Mes articles en français

Books in French