tag:blogger.com,1999:blog-261470339069403116.post8542382935514223040..comments2023-06-13T15:01:09.582+01:00Comments on get-scripting: Exchange 2003, WMI and Powershell - Part 1 (Get Mailbox Info)Jonathan Meddhttp://www.blogger.com/profile/16003000142799678177noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-261470339069403116.post-75682422971898532392014-05-31T13:32:50.471+01:002014-05-31T13:32:50.471+01:00You would need to also pull the LegacyDN attribute...You would need to also pull the LegacyDN attribute, and then leverage (or pipe) that to a Get-Mailbox or Get-ADUser command to pull other attributes, like UserName.JoelThorenoreply@blogger.comtag:blogger.com,1999:blog-261470339069403116.post-6780389141498014442014-05-31T13:32:30.881+01:002014-05-31T13:32:30.881+01:00You would need to also pull the LegacyDN attribute...You would need to also pull the LegacyDN attribute, and then leverage (or pipe) that to a Get-Mailbox or Get-ADUser command to pull other attributes, like UserName.JoelThornoreply@blogger.comtag:blogger.com,1999:blog-261470339069403116.post-43059091863174407032012-08-23T12:48:36.114+01:002012-08-23T12:48:36.114+01:00Cool. I have used it to get a list of all users ma...Cool. I have used it to get a list of all users mailbox consumption on an Exchange 2003 server that was out of reach.<br /><br />I only needed the user and size so this is what I used:<br />Get-WMIObject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer ServerName | Sort-Object Siz<br />e -Descending | format-table MailboxDisplayName,Size<br /><br />I was wondering, is there a way to get the username instead of the displayname?<br /><br />Thanks for a great script.<br />KasperAnonymousnoreply@blogger.com