I am working on a Powershell script that will only return common items and an Exchange 2003 mailbox. For now, I have this:
get-wmiobject -putputername exchange01 -namespace root \ microsoftexchangev2 -class exchange_mailbox -filter "mailboxdisplayname = 'Journal Mail'" | select-object totalitems | host entries
However, this gives results like:
@ {TotalItems = 939}
I want the number to be returned, since we have an external program that will read this number and send a notification if it exceeds the given number.
I'm having trouble finding a way to extract all the unnecessary information from the results. Any suggestions are welcome how I can do this.
source share