I need a solution
We use the Software Portal to allow our service desk to request software. When a policy is requested, a target is created under Applied To. As you can imagine, this creates a lot of clutter so someone before me implemented a script that purges all targets more than 120 hours old.
This works fine, but leaves us with a Target list full of targets with a count of 0. Is there any way to script the removal of targets with a count of 0?
Here is a screenshot: