pi01162
asked on
shared Mailboxes full report
Hello,
I need to report detailed statistics from shared mailboxes on Exchange 07.
I tried to use get-mailboxpermission command but I can't filter all columns.
The final csv file should include these properties: Mailbox_Name,WhenCreated, Mailbox_smtp_address,Requi reSenderAu thenticati onEnabled (Yes/No), HiddenFromAddressListsEnab led (Yes/No), Mailbox_database, ProhibitSendQuota
Prohibit_Send_Quota,Prohib it_Receive _Quota,Iss ueWarningQ uota, ,ManagedBy,Notes,Full_Acce ss (users samaccountname),Send_As(us ers samaccountname),User_Accou nt_Is_Bloc ked (Yes/No),Accept_Messages_f rom
I suppose that it wouldn't be an easy work to write such script because i don't know that all properties are available.
I need to report detailed statistics from shared mailboxes on Exchange 07.
I tried to use get-mailboxpermission command but I can't filter all columns.
The final csv file should include these properties: Mailbox_Name,WhenCreated, Mailbox_smtp_address,Requi
Prohibit_Send_Quota,Prohib
I suppose that it wouldn't be an easy work to write such script because i don't know that all properties are available.
ASKER
First thanks for reply!
ManagedBy (Shared mailbox manager) and Account_Is_Blocked (user's account is blocked in ActiveDirectory)
ManagedBy (Shared mailbox manager) and Account_Is_Blocked (user's account is blocked in ActiveDirectory)
ASKER
Helo,
I tested this script and almost works except Send-As permission.
The script doesn't display those permissions. Full Acces is ok.
So please look again at Your's script and check "Send-As"
P.s Also I add manager field at the end
I tested this script and almost works except Send-As permission.
The script doesn't display those permissions. Full Acces is ok.
So please look again at Your's script and check "Send-As"
P.s Also I add manager field at the end
Get-Mailbox -organizationalunit 'domain.corp/Mailboxes' -id | ForEach-Object {
$Stats = Get-MailboxStatistics $_.DistinguishedName
$_ | Select-Object Name, WhenCreated, PrimarySmtpAddress, RequireSenderAuthenticationEnabled,
HiddenFromAddressListsEnabled, Database, ProhibitSendQuota, ProhibitSendReceiveQuota, IssueWarningQuota,
AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, RejectMessagesFrom, RejectMessagesFromDLMembers,
@{n='FullAccess';e={
Get-MailboxPermission $_.DistinguishedName |
Where-Object { !$_.IsInherited -And $_.AccessRights -Match 'FullAccess' -And $_.User -NotMatch 'SELF' } |
ForEach-Object { $_.User } }},
@{n='SendAs';e={
Get-AdPermission $_.DistinguishedName |
Where-Object { !$_.Inherited -And $_.Rights -Match 'Send-As' } |
ForEach-Object { $_.User } }},
@{n='Manager';e={Get-User $_.DistinguishedName | select}}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This gets us near to that. Anything missing?
You may have to clarify on what you mean by Accout_Is_Blocked and ManagedBy.
Chris
Open in new window