Solved

Output full access permissions powershell exchange

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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.
A brief introduction to what I consider to be the best editor for PowerShell.
To show how to create a transport rule 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 >> Rules tab.:  To cr…
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

920 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

13 Experts available now in Live!

Get 1:1 Help Now