Solved

Output full access permissions powershell exchange

Posted on 2015-02-20
2
121 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
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…

786 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