Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AuditEnabled property to EXOMailboxSettings #5747

Open
wants to merge 9 commits into
base: Dev
Choose a base branch
from
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
FIXES [#5742](https://github.com/microsoft/Microsoft365DSC/issues/5742)
* AADPasswordRuleSettings
* Updated schema to only accept values 'Enforced' and 'Audit' for parameter BannedPasswordCheckOnPremisesMode
* EXOMailboxSettings
* Add AuditEnabled
* IntuneDeviceCompliancePolicyWindows10
* Fixes the handling of the `DeviceCompliancePolicyScript` property.
FIXES [#5510](https://github.com/microsoft/Microsoft365DSC/issues/5510)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ function Get-TargetResource
[System.String]
$Locale,

[Parameter()]
[System.Boolean]
$AuditEnabled,

[Parameter()]
[System.String]
$RetentionPolicy,
Expand Down Expand Up @@ -124,6 +128,7 @@ function Get-TargetResource
AddressBookPolicy = $mailboxInfo.AddressBookPolicy
RoleAssignmentPolicy = $mailboxInfo.RoleAssignmentPolicy
SharingPolicy = $mailboxInfo.SharingPolicy
AuditEnabled = $mailboxInfo.AuditEnabled
Ensure = 'Present'
Credential = $Credential
ApplicationId = $ApplicationId
Expand Down Expand Up @@ -156,6 +161,10 @@ function Set-TargetResource
[System.String]
$Locale,

[Parameter()]
[System.Boolean]
$AuditEnabled,

[Parameter()]
[System.String]
$RetentionPolicy,
Expand Down Expand Up @@ -279,6 +288,10 @@ function Test-TargetResource
[System.String]
$Locale,

[Parameter()]
[System.Boolean]
$AuditEnabled,

[Parameter()]
[System.String]
$RetentionPolicy,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class MSFT_EXOMailboxSettings : OMI_BaseResource
[Write, Description("Associated sharing policy.")] string SharingPolicy;
[Write, Description("The name of the Time Zone to assign to the mailbox")] string TimeZone;
[Write, Description("The code of the Locale to assign to the mailbox")] string Locale;
[Write, Description("The AuditEnabled parameter specifies whether to enable or disable mailbox audit logging for the mailbox. If auditing is enabled, actions specified in the AuditAdmin, AuditDelegate, and AuditOwner parameters are logged")] boolean AuditEnabled;
[Write, Description("Present ensures the Mailbox Settings are applied"), ValueMap{"Present"}, Values{"Present"}] string Ensure;
[Write, Description("Credentials of the Exchange Global Admin"), EmbeddedInstance("MSFT_Credential")] string Credential;
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
Expand Down