Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

powershell exchange

Posted on 2015-02-12
5
Medium Priority
?
21 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 71

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 71

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

Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
To show how to generate a certificate request 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 Servers >> Certificates…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

610 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