Get-EmcExchangeCmdletOutput

Gets results of some standard Microsoft PowerShell cmdlets for Exchange. This is not an ESI cmdlet.

 

Syntax

Get-EmcExchangeCmdletOutput -Cmdlet <String> [-ExchangeSystem <IExchangeApplicationSystem>] [-Silent] [<CommonParameters>]

 

Parameters

-Cmdlet <String>

Attributes: Required, Position: named

Specifies the name of a standard Exchange cmdlet.

 

-ExchangeSystem <IExchangeApplicationSystem>

Attributes: Optional, Position: named

Specifies the Exchange system object.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$exchange = Get-EmcExchangeSystem

C:\PS>$mailboxservers = $exchange | Get-EmcExchangeCmdletOutput -Cmdlet "Get-MailboxServer"

Gets the mailbox servers for the specified Exchange system.

 

-------------- Example 2 --------------

C:\PS>$exchange = Get-EmcExchangeSystem

C:\PS>$mailboxservers = Get-EmcExchangeCmdletOutput -ExchangeSystem $exchange[0]  -Cmdlet "Get-MailboxServer"

Gets the mailbox servers for the specified Exchange system.