When I write Scheduled Task, I start by copying one of the ones that exist and removing all the stuff in between. See this post for a good starting point -
https://vborg.vbsupport.ru/showpost....30&postcount=5 Then you just need to fill in the query you will be performing. (I do not know the query off the top of my head. Take a look at the script in the forum manager that does it.)