Link to home
Start Free TrialLog in
Avatar of techdrive
techdriveFlag for United States of America

asked on

Output full access permissions powershell exchange

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
Avatar of Peter Hutchison
Peter Hutchison
Flag of United Kingdom of Great Britain and Northern Ireland image

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
}
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial