Jawloms Posted June 9, 2015 Posted June 9, 2015 I am well aware as to how to look at a mailbox and see who has "Send As" permissions, but I want to do it the other way and can't find anything; I want to know how I find out all the mailboxes a particular user has "Send As" permission on. I assume it is possible. Can anyone help please? Thank you Stuart
pantscat Posted June 9, 2015 Posted June 9, 2015 Give this a whirl in PowerShell - "Get-Mailbox | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”)} | FT -Wrap"
Jawloms Posted June 9, 2015 Author Posted June 9, 2015 Thanks, but that is just giving me lines and lines as attached. Not sure what it's telling me.
pantscat Posted June 10, 2015 Posted June 10, 2015 Ok - do you just want to find this out for one user?
pantscat Posted June 10, 2015 Posted June 10, 2015 Get-ADPermission -Identity user1 | Where-Object {$_.extendedrights -like "*send*"} Change user1 to the user you want to find.
Jawloms Posted June 10, 2015 Author Posted June 10, 2015 That did this; And I know she has send permission over at least one mailbox as I gave it to her yesterday.
pantscat Posted June 10, 2015 Posted June 10, 2015 Hmm. Ok. Let's try a different approach. How about this: Get-Mailbox -Server “exchangeserver” | Get-MailboxPermission | where { ($_.AccessRights -eq “SendAs”) -and -not ($_.User -like “NT AUTHORITY\SELF”) }
pantscat Posted June 10, 2015 Posted June 10, 2015 My fault - wrong syntax. Get-Mailbox -Server “exchangeserver” | Get-MailboxPermission | where { ($_.ExtendedRights -like “Send”) -and -not ($_.User -like “NT AUTHORITY\SELF”) }
Jawloms Posted June 10, 2015 Author Posted June 10, 2015 Same response though. I am grateful for your help so far.
pantscat Posted June 10, 2015 Posted June 10, 2015 I'm a bit stuck then! Haven't got access to an Exchange box to check out my PS. Just to check, and sorry for being patronising, but you are using Exchange Management Shell and not just a powershell window?
Jawloms Posted June 10, 2015 Author Posted June 10, 2015 Yes I am. And don't worry about checking things like that, I think most of us have been around long enough to realise you shouldn't assume anything at all!
pantscat Posted June 10, 2015 Posted June 10, 2015 Cool - no worries! Just to check is it definitely "SendAs" and not "Send on Behalf"?
Jawloms Posted June 10, 2015 Author Posted June 10, 2015 In Exchange Management console, I highlighted our "office" mailbox, then clicked on "Manage Send As Permission" and added jnorman to it. I would now like to see if jnorman has that permission over any other mailboxes. I hope that's clear. Sorry if not....
pantscat Posted June 10, 2015 Posted June 10, 2015 Hmmm... how about this: Get-Mailbox -Server “exchangeserver” | Get-MailboxPermission | where { ($_.User -like “domain\jnorman") } Does that list anything?
Jawloms Posted June 10, 2015 Author Posted June 10, 2015 No response again. Just to confirm even more, attached is a screenshot of her in the "Send As" bit.
pantscat Posted June 10, 2015 Posted June 10, 2015 How odd... it should list something. Get-Mailbox -Server “exchangeserver” | Get-MailboxPermission Does that give any output at all? There should be lots...
pantscat Posted June 10, 2015 Posted June 10, 2015 Well, that's good. I'm a bit stumped then as to why my bit of powershell doesn't work. It should work...
pantscat Posted June 11, 2015 Posted June 11, 2015 I still haven't managed to get to a server to test it... but I think this should work: Get-Mailbox -server "MyExchangeServer" | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | FT -Wrap Let me know... 1
Jawloms Posted June 11, 2015 Author Posted June 11, 2015 That one is working brilliantly. Thank you so much for your perserverance with it! Stuart
pantscat Posted June 11, 2015 Posted June 11, 2015 No problem! It was one of those things that was annoying me!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now