This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
exchange:reporting:wmi_vbscript [2009/12/18 09:51] ben |
exchange:reporting:wmi_vbscript [2010/03/06 04:33] (current) ben |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code> | <code> | ||
| - | 'the main work was taken from Microsoft's sample code from the Exchange_Mailbox Class page: | + | 'the main work was taken from Microsoft's sample code |
| - | 'http://msdn.microsoft.com/en-us/library/ms876479(EXCHG.65).aspx | + | |
| Line 82: | Line 81: | ||
| For Each objExchange_Mailbox in listExchange_Mailboxes | For Each objExchange_Mailbox in listExchange_Mailboxes | ||
| + | 'Two things of note: | ||
| + | 'objExchange_Mailbox.LegacyDN | ||
| + | 'objExchange_Mailbox.MailboxDisplayName | ||
| 'Return the mailbox fields we want... | 'Return the mailbox fields we want... | ||
| - | WScript.echo """" & objExchange_Mailbox.MailboxDisplayName & """,""" & objExchange_Mailbox.Size & """,""" & _ | + | WScript.echo """" & objExchange_Mailbox.LegacyDN & """,""" & objExchange_Mailbox.Size & """,""" & _ |
| objExchange_Mailbox.LastLogonTime & """,""" & objExchange_Mailbox.ServerName & """,""" & _ | objExchange_Mailbox.LastLogonTime & """,""" & objExchange_Mailbox.ServerName & """,""" & _ | ||
| objExchange_Mailbox.StorageGroupName & """,""" & _ | objExchange_Mailbox.StorageGroupName & """,""" & _ | ||
| Line 100: | Line 102: | ||
| End Function | End Function | ||
| + | |||
| </code> | </code> | ||