?
Solved

powershell exchange

Posted on 2015-02-12
5
Medium Priority
?
20 Views
Last Modified: 2016-06-23
I have these two commands that pull send as access and full acess permissions for users. I was wondering if I could have them to pull the users permissions in the format I have listed below.

Get-Mailbox  | Get-MailboxPermission | ?{($_.AccessRight s -eq "FullAccess") -and ($_.User -like 'DOMAIN\user') -and ($_.IsInherited -eq $false)}


Get-Mailbox -OrganizationalUnit "" | Get-ADPermission | ? {$_.Deny -eq $false -and $_.ExtendedRights -like "*Send-As*" -and $_.IsInherited -eq $false -and !($_.User-like "NT AUTHORITY\SELF")} | Select User,Identity,@{N="AccessRights";E={$_.AccessRights}},@{N="ExtendedRights";E={$_.ExtendedRights}}



user1

      domain\user
      domain\user1
      domain\user2
      domain\user3

user2

      domain\user
      domain\user1
      domain\user2
      domain\user3
user3

      domain\user1
      domain\user2
      domain\user3
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
  • 2
5 Comments
 
LVL 70

Expert Comment

by:Qlemo
ID: 40613971
Those two queries are not related, so what is it you really want to see?
0
 

Author Comment

by:techdrive
ID: 40614982
qlemo they are...one is for send as and the other is for full access. I am trying to pull full access for users in exchange  but I wanted this to display in the following format. I wanted the samething for send as.


user1

       domain\user
       domain\user1
       domain\user2
       domain\user3

 user2

       domain\user
       domain\user1
       domain\user2
       domain\user3
 user3

       domain\user1
       domain\user2
       domain\user3
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 40614989
Above should be the result if user1 has full access to those for accounts, etc.?
0
 

Accepted Solution

by:
techdrive earned 0 total points
ID: 40615012
foreach ($mailboxes in Get-mailbox -resultsize:unlimited) { get-adpermission $mailboxes | ft @{expression={$_.displayname};Label=”$mailboxes”}} |export-csv

Open in new window



I think I have found the solution. At least this works in distribution groups http://oxfordsbsguy.com/2014/04/21/exchange-powershell-how-to-enumerate-distribution-lists-managers-and-members/ next to the last at the bottom. It lists the groups and then the members. I was trying to list the mailbox and then who what full access are assigned to that mailbox.
0

Featured Post

Four New Appliances. Same Industry-leading Speeds.

But don't take it from us.  The Firebox M370 is Miercom tested and Miercom approved, outperforming its competitors for stateless and stateful traffic throughput scenarios.  Learn more about the M370, M470, M570 and M670 and find the right solution for your organization today!

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
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 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…
Suggested Courses

764 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