Hey Doug,
Thanks for the question. I don't have a script on hand to do this. But it seems like it would be pretty easy to do with python.
Check out this learning material.
Please let me know if this helps.
Kind Regards,
Zach Sylvester
System/Network Administrator
SmarterTools Inc.
(877) 357-6278
www.smartertools.com