[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 575
  • Last Modified:

Script to see users rights in a mailbox store

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
0
mortonmark
Asked:
mortonmark
  • 2
2 Solutions
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Get-Mailbox | Get-MailboxPermissions -User "UserName" | Fl Name, AcsessRights
Get-Mailbox | Get-ADPermissions -User "UserName" | Fl Name, ExtendedRights
- Rancy
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
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
0
 
mortonmarkAuthor 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
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now