PowerShell.ws >_

The unOfficial PowerShell Website!

PowerShell Command Reference:
A short synopsis of Get-MailboxPermission: Use the Get-MailboxPermission cmdlet to get permissions on a mailbox.

A Description of Get-MailboxPermission:
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. T o see what permissions you need, see the "Mailbox permissions and delegation" entry in the Mailbox Permissions topic.

The Possible Inputs for Get-MailboxPermission:

The Correct Syntax for Get-MailboxPermission:
Get-MailboxPermission -Identity [-Credential ] [-DomainController ] [-ReadFrom DomainController ] [-ResultSize ] [-User ] [] Get-MailboxPermission -Identity [-Credential ] [-DomainController ] [-Owner ] [-ReadFromDomainController ] [-ResultSize ] []

The Return Values for Get-MailboxPermission:

Usage Examples for Get-MailboxPermission:

-------------------------- EXAMPLE 1 --------------------------




This example returns permissions on the mailbox by its SMTP address john@contoso.com.

Get-MailboxPermission -Identity john@contoso.com | Format-List




-------------------------- EXAMPLE 2 --------------------------




This example returns permissions that the user Ayla has on John's mailbox.

Get-MailboxPermission -Identity john@contoso.com -User "Ayla"




-------------------------- EXAMPLE 3 --------------------------




This example returns the owner information for the resource mailbox Room222.

Get-MailboxPermission -Identity Room222 -Owner








Possible Parameters for Get-MailboxPermission:


-Identity

The Identity parameter identifies the mailbox. You can use one of the following values:

* GUID

* ADObjectID

* Distinguished name (DN)

* Domain\Account

* User principal name (UPN)

* LegacyExchangeDN

* SmtpAddress

* Alias



Required? true

Position? 1

Default value

Accept pipeline input? True

Accept wildcard characters? true



-Credential

The Credential parameter specifies the user name and password to use to access Active Directory.

This parameter requires the creation and passing of a credential object. This credential object is created by u

sing the Get-Credential cmdlet. For more information, see Get-Credential (http://go.microsoft.com/fwlink/?LinkI

d=142122).



Required? false

Position? Named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-DomainController

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that r

etrieves data from Active Directory.



Required? false

Position? Named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-Owner

The Owner parameter returns the owner information for the mailbox identified in the Identity parameter.

This parameter can't be used with the User parameter.



Required? false

Position? Named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-ReadFromDomainController

The ReadFromDomainController parameter specifies that the user information is read from a domain controller in

the user's domain.

If you set the recipient scope to include all recipients in the forest, and if you don't use this parameter, it

's possible that the user information is read from a global catalog with outdated information.

If you use this parameter, multiple reads might be necessary to get the information.

By default, the recipient scope is set to the domain that hosts your servers that run Exchange.



Required? false

Position? Named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-ResultSize

The ResultSize parameter specifies the maximum number of recipient objects returned.



Required? false

Position? Named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-User

The User parameter specifies the UPN, domain\user, or the alias of the user.



Required? false

Position? Named

Default value

Accept pipeline input? False

Accept wildcard characters? false





This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer and OutVariable. For more information, type,

"get-help about_commonparameters".