We help IT Professionals succeed at work.

Script to see users rights in a mailbox store

mortonmark
mortonmark asked
on
I can’t seem to get this one right, I have a few scripts for getting specific permissions on a single mailbox but I am trying to design one to see a single users permission to all mailboxes

If I could output the results to a file, even better.

Has anyone have any insight into a script like this?


thanks
Comment
Watch Question

Manpreet SIngh KhatraSolutions Architect, Project Lead
CERTIFIED EXPERT
Top Expert 2013
Commented:
Get-Mailbox | Get-MailboxPermissions -User "UserName" | Fl Name, AcsessRights
Get-Mailbox | Get-ADPermissions -User "UserName" | Fl Name, ExtendedRights
- Rancy
Solutions Architect, Project Lead
CERTIFIED EXPERT
Top Expert 2013
Commented:
Get-MailboxPermission
http://technet.microsoft.com/en-us/library/aa998218.aspx

Get-ADPermission
http://technet.microsoft.com/en-us/library/bb125183.aspx

First command : Get-Mailbox just gives you output for all mailboxes, if issues you can always try with Output for Server or Database such as
Get-Mailbox -Server "ServerName"
Get-Mailbox -Database "DatabaseName"

- Rancy

Author

Commented:
thanks for the responses. I just did a simple version of both which will work for what i need

Get-Mailbox | Get-MailboxPermission -User "username"| Export-Csv c:\test.csv

thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.