Solved

Output full access permissions powershell exchange

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

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

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
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…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now