I'm looking for a way to list the accounts that have any delivery option set in Exchange 2003.
I have used WMI to query the Exchange classes described at http://msdn.microsoft.com/en-us/library/aa142577(EXCHG.65).aspx but so far I haven't found any properties related to the delivery options.
Thanks!
You'll need to specify a bit more specifically what delivery options you want, as there are several. I'll give you this VBScript though, which will give you every user in your Active Directory who has a forwarding mailbox set.
I've tested this in a VM and it runs pretty quickly, but usual rules apply. Please test in a lab environment before running in production, and I take no responsibility for the world collapsing under its own weight when you run this script.
Invoke on the command line with
cscript /nologo altRecipient.vbs