none
Why do we need to use bracket to get result ?

    Question

  • Hello,
    I don t understand when we use the command GET-MAILBOXDATABASE and GET-MAILBOX on cmdlet select , it is necessary to add parentheses (brackets) to get a result.

    Not run
    Get-MailboxDatabase | select Identity,@{n='Total Mailbox';e={(Get-Mailbox -Database $_.Identity -ResultSize "Unlimited").count}}

    It s run
    (Get-MailboxDatabase) | select Identity,@{n='Total Mailbox';e={(Get-Mailbox -Database $_.Identity -ResultSize "Unlimited").count}}

    Do you have an idea or an explanation ..

    Thank you very much
    Sylvain
    Thursday, June 21, 2012 10:16 AM

All replies