exchange powershell query
Hi Guys, i am trying to run a script to find which mailboxes currently have a particular user account assigned to have Full Permission to it. I am trying the following command but the problem is , is that i am a member of one of the full access
groups assigned to all mailboxes and as a result i get the entire domain as my list. How can i run a command to find which has only one particular account assigned to it no matter what the group membership is?
here is the command i am currently using:
Get-Mailbox -Server server name | Get-MailboxPermission | where { ($_.AccessRights -eq FullAccess) -and ($_.IsInherited -eq $false) -and -not ($_.User -like domain\user) }
Your help is appreciated
Regards,
September 21st, 2012 1:34am
On Fri, 21 Sep 2012 05:34:03 +0000, BCS Sys Admins wrote:
>
>
>Hi Guys, i am trying to run a script to find which mailboxes currently have a particular user account assigned to have Full Permission to it. I am trying the following command but the problem is , is that i am a member of one of the full access groups
assigned to all mailboxes and as a result i get the entire domain as my list. How can i run a command to find which has only one particular account assigned to it no matter what the group membership is?
>
>here is the command i am currently using:
>
>Get-Mailbox -Server server name | Get-MailboxPermission | where { ($_.AccessRights -eq FullAccess) -and ($_.IsInherited -eq $false) -and -not ($_.User -like domain\user) }
>
>Your help is appreciated
Try ($_.User.ToString() -like "domain\user")
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
September 21st, 2012 9:59am
On Fri, 21 Sep 2012 05:34:03 +0000, BCS Sys Admins wrote:
>
>
>Hi Guys, i am trying to run a script to find which mailboxes currently have a particular user account assigned to have Full Permission to it. I am trying the following command but the problem is , is that i am a member of one of the full access groups
assigned to all mailboxes and as a result i get the entire domain as my list. How can i run a command to find which has only one particular account assigned to it no matter what the group membership is?
>
>here is the command i am currently using:
>
>Get-Mailbox -Server server name | Get-MailboxPermission | where { ($_.AccessRights -eq FullAccess) -and ($_.IsInherited -eq $false) -and -not ($_.User -like domain\user) }
>
>Your help is appreciated
Try ($_.User.ToString() -like "domain\user")
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
September 21st, 2012 10:10am
hi,
Any update?
If above method can help you, please remember to mark as answer.
thanks,
CastinLu
TechNet Community Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
September 28th, 2012 5:34am
Hi
You can also check this:
Exchange 2010 list mailboxes with Full Access or Send As permissions assigned
Remigiusz
October 5th, 2012 1:03am