Managing Exchange 2003 With Power Shell

  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Managing Exchange 2003 With Power Shell as PDF for free.

More details

  • Words: 224
  • Pages: 1
Managing Exchange 2003 with Powershell: First order of business is to learn how to get informational elements out of Exchange 2003 through Powershell. We will be using the WMI object which provides a way of OLE automation through the ADSI (Active Directory Service Interfaces.) below are a list of commands that procure different informational elements about your exchange server. To get your message queue type the following command: Get-wmiobject -class Exchange_SMTPQueue -Namespace ROOT\MicrosoftExchangev2 -ComputerName | select-object LinkName,MessageCount,Size To display the size of mailboxes type the following command: get-wmiobject -class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName | select-object MailboxDisplayName,TotalItems,Size Notice that the two commands are very similar with only the select-object statement being different. The reason for this, is that you’re are in querying your exchange server for informational elements. If you were to type the following command you would be given everything in a not so friendly format. get-wmiobject -class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName The following command gives you summary information on the server and it’s state: get-wmiobject ExchangeServerState -Namespace "root\cimv2\applications\exchange" -ComputerName Please Note: Powershell shine when managing Exchange 2007 and not so much when managing Exchange 2003. One thing that could possibly assist you is PowerGUI which exposes and assists you in creating Powershell scripts

Related Documents