Nielsengelen, I'm not sure that answers his question.
Dynamically means not needing to go in and add/remove sites as they're added/removed. To my knowledge, the only way to do this is via a script; VBO doesn't natively have the ability to dynamically add or remove sites, as we cannot as of yet add Sharepoint Sites to any dynamic group which VBO could query from.
It's something I'm struggling with as well - my script adds any sites not on the list, but it does not remove deleted sites. I have to work that logic into it, yet.
Your script is the closest I've found and what I based mine off of, though I've adjusted it some. For Tim's use, I assume he'd just want to either set
to
or exclude that switch entirely.
Right now my operating theory is to adjust the script to first remove all objects from the job, and re-run it. In this way, any deleted sites will not be added; ideally I suppose would be in some fashion making an array and doing a compare, removing sites that aren't listed in the
I just haven't wrapped my brain around that advanced scripting yet, when it's probably just as fast to remove all / readd what is in existence.
Maybe I'm off base, if so I'm sorry - I'd love to have a friendly discourse on it.