Skip to content

Commit

Permalink
Version 1.0.2
Browse files Browse the repository at this point in the history
Set-Mailbox command changed from Pipeline input to $Mailbox.Identity (thx hestmo)
  • Loading branch information
soren-cloud committed May 24, 2018
1 parent 509c807 commit 1d54e08
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ExO-EnableMailboxAuditLogging.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<#PSScriptInfo
.VERSION 1.0.1
.VERSION 1.0.2
.GUID 911b3916-2a11-4e53-977b-3992fc89d977
.AUTHOR Soren Lindevang
.COMPANYNAME
Expand Down Expand Up @@ -74,6 +74,11 @@
N/A
.NOTES
Version: 1.0.2
Author: Soren Greenfort Lindevang
Creation Date: 24.05.2018
Purpose/Change: - Set-Mailbox command changed from Pipeline input to $Mailbox.Identity (thx hestmo)
Version: 1.0.1
Author: Soren Greenfort Lindevang
Creation Date: 15.05.2018
Expand Down Expand Up @@ -299,7 +304,7 @@ Foreach ($Mailbox in $MailboxesToProcess)
{
$count++
Write-Verbose "Mailbox: $count/$($MailboxesToProcess.count) - $($Mailbox.UserPrincipalName)"
$Mailbox | Set-Mailbox -AuditEnabled $true -AuditOwner $AuditOwner -AuditAdmin $AuditAdmin -AuditDelegate $AuditDelegate `
Set-Mailbox -Identity $Mailbox.UserPrincipalName -AuditEnabled $true -AuditOwner $AuditOwner -AuditAdmin $AuditAdmin -AuditDelegate $AuditDelegate `
-AuditLogAgeLimit $AuditLogAgeLimit -Force
}
catch
Expand All @@ -309,4 +314,4 @@ Foreach ($Mailbox in $MailboxesToProcess)
}
Write-Verbose "Processing completed"

Stop-AutomationScript -Status Success
Stop-AutomationScript -Status Success

0 comments on commit 1d54e08

Please sign in to comment.