Solved

Output full access permissions powershell exchange

Posted on 2015-02-20
2
127 Views
Last Modified: 2015-02-22
Greetings I am trying to get the full access permission of a mailbox and have it listed out with the following output.


mailbox name
 
           domain\username
           domain\username
           domain\username

mailbox name
          domain\username
           domain\username

mailbox name
         domain\username
0
Comment
Question by:techdrive
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Expert Comment

by:Peter Hutchison
ID: 40621139
Try something like this using a CSV files of users to export permissions from:

Param ($filename)
$userlist = Import-CSV -Path $filename
Foreach ($user in $userlist)
{
  Write $user.Identity >>c:\perms.txt
   Get-MailboxPermission $user.Identity | FT User >> c:\perms.txt
  Write " " >>c:\perms.txt
}
0
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 500 total points
ID: 40621325
Use the below script to accomplish this...
$Users = get-content c:\filename.txt"
ForEach ($User in $Users) {
     Get-MailboxPermissions -Identity $User | ft $User, user | Out-String | Out-File "c:\filename.csv" -append
}

Open in new window


That should do it.

Will.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question