Skip to content

Commit

Permalink
Merge pull request #2 from AtFabianW/EXOOwaMailBoxPolicy
Browse files Browse the repository at this point in the history
Add support for AccountTransferEnabled parameter
  • Loading branch information
AtFabianW authored Sep 2, 2024
2 parents 498a7ac + 2970a87 commit 5e003a0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* Fixes an issue where a Intune settings catalog DSC param was not handled
correctly when it was not specified.
FIXES [#5000](https://github.com/microsoft/Microsoft365DSC/issues/5000)
* EXOOwaMailboxPolicy
* Add support for AccountTransferEnabled parameter

# 1.24.828.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ function Get-TargetResource
[System.String]
$Name,

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

[Parameter()]
[ValidateSet('Allow', 'ForceSave', 'Block')]
[System.String]
Expand Down Expand Up @@ -434,6 +438,7 @@ function Get-TargetResource
{
$result = @{
Name = $OwaMailboxPolicy.Name
AccountTransferEnabled = $OwaMailboxPolicy.AccountTransferEnabled
ActionForUnknownFileAndMIMETypes = $OwaMailboxPolicy.ActionForUnknownFileAndMIMETypes
ActiveSyncIntegrationEnabled = $OwaMailboxPolicy.ActiveSyncIntegrationEnabled
AdditionalAccountsEnabled = $OwaMailboxPolicy.AdditionalAccountsEnabled
Expand Down Expand Up @@ -556,6 +561,10 @@ function Set-TargetResource
[System.String]
$Name,

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

[Parameter()]
[ValidateSet('Allow', 'ForceSave', 'Block')]
[System.String]
Expand Down Expand Up @@ -1015,6 +1024,10 @@ function Test-TargetResource
[System.String]
$Name,

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

[Parameter()]
[ValidateSet('Allow', 'ForceSave', 'Block')]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
class MSFT_EXOOwaMailboxPolicy : OMI_BaseResource
{
[Key, Description("The Name parameter specifies the unique name for the policy. The maximum length is 64 characters.")] String Name;
[Write, Description("The AccountTransferEnabled parameter specifies whether to enable or disable QR code sign-in. By default, QR code sign-in is enabled.")] Boolean AccountTransferEnabled;
[Write, Description("The ActionForUnknownFileAndMIMETypes parameter specifies how to handle file types that aren't specified in the Allow, Block, and Force Save lists for file types and MIME types"), ValueMap{"Allow","ForceSave","Block"}, Values{"Allow","ForceSave","Block"}] String ActionForUnknownFileAndMIMETypes;
[Write, Description("The ActiveSyncIntegrationEnabled parameter specifies whether to enable or disable Exchange ActiveSync settings in Outlook on the web. ")] Boolean ActiveSyncIntegrationEnabled;
[Write, Description("No description available.")] Boolean AdditionalAccountsEnabled;
Expand Down

0 comments on commit 5e003a0

Please sign in to comment.