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

Release 1.25.219.3 #5841

Merged
merged 38 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
37cd2b7
Add ReportChatMessageEnabled, ReportChatMessageToCustomizedAddressEna…
JuliusRauschen Feb 19, 2025
222614c
Merge branch 'Dev' into report-submission-policy-new-params
JuliusRauschen Feb 19, 2025
04411ef
Merge branch 'Dev' into report-submission-policy-new-params
NikCharlebois Feb 20, 2025
7eb5dec
Add placeholder descriptions to EXOReportSubmissionPolicy.schema.mof
JuliusRauschen Feb 20, 2025
5e34a03
Updated SC export functions to force authentication
ykuijs Feb 21, 2025
248b59f
Updated changelog
ykuijs Feb 21, 2025
56013c0
Add Intune Device Compliance Script for Windows10 resource
Feb 21, 2025
13db5a3
EXODistributionGroup - Fixed the Ability to Set Members
NikCharlebois Feb 21, 2025
5b22284
Update MSFT_EXODistributionGroup.psm1
NikCharlebois Feb 21, 2025
5d5dde7
Update
NikCharlebois Feb 21, 2025
b3e20ae
Updates to SCPolicyConfig handling of default values
NikCharlebois Feb 21, 2025
5e64ba4
Update Microsoft365DSC.SCPolicyConfig.Tests.ps1
NikCharlebois Feb 21, 2025
6f613f7
Merge pull request #5827 from NikCharlebois/EXODistributionGroup-Fix
NikCharlebois Feb 21, 2025
c65bd22
Updated Resources and Cmdlet documentation pages
NikCharlebois Feb 21, 2025
ee80efe
Updated Schema Definition
NikCharlebois Feb 21, 2025
e279755
AADApplication - Fix ReplyUrls Removal
NikCharlebois Feb 21, 2025
bae86f1
Merge pull request #5830 from NikCharlebois/AADApplication
NikCharlebois Feb 21, 2025
485d683
Merge branch 'Dev' into Dev
ykuijs Feb 22, 2025
e4112d9
Merge pull request #5825 from ykuijs/Dev
ykuijs Feb 22, 2025
d4d8d08
Merge branch 'Dev' into feat/device-compliance-script-windows10
FabienTschanz Feb 24, 2025
3fd4329
Merge pull request #5826 from FabienTschanz/feat/device-compliance-sc…
NikCharlebois Feb 24, 2025
5697213
Merge pull request #5806 from JuliusRauschen/report-submission-policy…
NikCharlebois Feb 24, 2025
94380c1
Updated Resources and Cmdlet documentation pages
NikCharlebois Feb 24, 2025
c5a1559
Updated Resources and Cmdlet documentation pages
NikCharlebois Feb 24, 2025
f08430d
Updated Schema Definition
NikCharlebois Feb 24, 2025
f30b2f7
Updated {Create} Intune Integration Tests
NikCharlebois Feb 24, 2025
3fe3a28
Various EXO fixes
NikCharlebois Feb 24, 2025
afb688a
Update CHANGELOG.md
NikCharlebois Feb 24, 2025
5c1358b
Fixes Unit Tests
NikCharlebois Feb 24, 2025
c4eb342
Merge pull request #5834 from NikCharlebois/Various-EXO-fixes
NikCharlebois Feb 24, 2025
d0965fc
Various AAD Fixes
NikCharlebois Feb 24, 2025
627988d
Updated Schema Definition
NikCharlebois Feb 24, 2025
d85b793
AAD Fixes
NikCharlebois Feb 24, 2025
a7409a3
Merge pull request #5835 from NikCharlebois/Various-EXO-fixes
NikCharlebois Feb 24, 2025
1e08444
Updated Dependencies
NikCharlebois Feb 25, 2025
b1329fd
Fixes for caching
NikCharlebois Feb 26, 2025
46db79b
Release 1.25.219.3
NikCharlebois Feb 26, 2025
b541663
Merge pull request #5840 from NikCharlebois/Updated-Dependencies
NikCharlebois Feb 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updates to SCPolicyConfig handling of default values
  • Loading branch information
NikCharlebois committed Feb 21, 2025
commit b3e20ae02eda41002014360d9eef5b50f08c69b1
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Changed the Get-TargetResource logic to return UPN instead of id.
* EXODistributionGroup
* Fixed the ability to set members.
* SCPolicyConfig
* Handle default values in the Get-TargetResource function.
* Added support for the FileCopiedToCloudFullUrlEnabled property.

# 1.25.219.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ function Get-TargetResource
[Microsoft.Management.Infrastructure.CimInstance[]]
$EvidenceStoreSettings,

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

[Parameter()]
[System.Boolean]
$IncludePredefinedUnallowedBluetoothApps,
Expand Down Expand Up @@ -177,19 +181,28 @@ function Get-TargetResource
$DlpNetworkShareGroupsObject = ConvertFrom-Json $instance.DlpNetworkShareGroups

# AdvancedClassificationEnabled
$AdvancedClassificationEnabledValue = [Boolean]::Parse(($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'AdvancedClassificationEnabled' }).Value)
$AdvancedClassificationEnabledValue = $false # default value
$valueToParse =($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'AdvancedClassificationEnabled' }).Value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$AdvancedClassificationEnabledValue = [Boolean]::Parse($valueToParse)
}

# BandwidthLimitEnabled
$toBeParsed = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'BandwidthLimitEnabled' }).Value
$parsedValue = $null
if ($null -ne $toBeParsed)
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'BandwidthLimitEnabled' }).Value
$BandwidthLimitEnabledValue = $true #default value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$parsedValue = [Boolean]::Parse($toBeParsed)
$BandwidthLimitEnabledValue = [Boolean]::Parse($valueToParse)
}
$BandwidthLimitEnabledValue = $parsedValue

# DailyBandwidthLimitInMB
$DailyBandwidthLimitInMBValue = [UInt32]($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'DailyBandwidthLimitInMB' }).Value
$DailyBandwidthLimitInMBValue = 1000 # default value
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'DailyBandwidthLimitInMB' }).Value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$DailyBandwidthLimitInMBValue = [UInt32]$valueToParse
}

# PathExclusion
$PathExclusionValue = [Array]($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'PathExclusion' }).Value
Expand All @@ -198,7 +211,12 @@ function Get-TargetResource
$MacPathExclusionValue = [Array]($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'MacPathExclusion' }).Value

# MacDefaultPathExclusionsEnabled
$MacDefaultPathExclusionsEnabledValue = [Boolean]::Parse(($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'MacDefaultPathExclusionsEnabled' }).Value)
$MacDefaultPathExclusionsEnabledValue = $true # default value
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'MacDefaultPathExclusionsEnabled' }).Value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$MacDefaultPathExclusionsEnabledValue = [Boolean]::Parse($valueToParse)
}

#EvidenceStoreSettings
$entry = $EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'EvidenceStoreSettings' }
Expand All @@ -214,7 +232,12 @@ function Get-TargetResource
}

# NetworkPathEnforcementEnabled
$NetworkPathEnforcementEnabledValue = [Boolean]::Parse(($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'NetworkPathEnforcementEnabled' }).Value)
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'NetworkPathEnforcementEnabled' }).Value
$NetworkPathEnforcementEnabledValue = $false # default value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$NetworkPathEnforcementEnabledValue = [Boolean]::Parse($valueToParse)
}

# NetworkPathExclusion
$NetworkPathExclusionValue = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'NetworkPathExclusion' }).Value
Expand Down Expand Up @@ -267,13 +290,12 @@ function Get-TargetResource
}

# IncludePredefinedUnallowedBluetoothApps
$toBeParsed = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'IncludePredefinedUnallowedBluetoothApps' }).Value
$parsedValue = $null
if ($null -ne $toBeParsed)
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'IncludePredefinedUnallowedBluetoothApps' }).Value
$IncludePredefinedUnallowedBluetoothAppsValue = $true # default value
if (-not [System.String]::IsNullOrEMpty($valueToParse))
{
$parsedValue = [Boolean]::Parse($toBeParsed)
$IncludePredefinedUnallowedBluetoothAppsValue = [Boolean]::Parse($valueToParse)
}
$IncludePredefinedUnallowedBluetoothAppsValue = $parsedValue

# UnallowedBluetoothApp
$entries = [Array]($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'UnallowedBluetoothApp' })
Expand Down Expand Up @@ -352,10 +374,20 @@ function Get-TargetResource
}

# serverDlpEnabled
$serverDlpEnabledValue = [Boolean]::Parse(($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'serverDlpEnabled' }).Value)
$serverDlpEnabledValue = $false #default value
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'serverDlpEnabled' }).Value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$serverDlpEnabledValue = [Boolean]::Parse($valueToParse)
}

# AuditFileActivity
$AuditFileActivityValue = [Boolean]::Parse(($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'AuditFileActivity' }).Value)
$AuditFileActivityValue = $false # default value
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'AuditFileActivity' }).Value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$AuditFileActivityValue = [Boolean]::Parse($valueToParse)
}

# VPNSettings
$entity = $EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'VPNSettings' }
Expand Down Expand Up @@ -454,10 +486,26 @@ function Get-TargetResource
}
}

#EnableLabelCoauthValue
$EnableLabelCoauthValue = $false # default value
if (-not [System.String]::IsNullOrEmpty($instance.EnableLabelCoauth))
{
$EnableLabelCoauthValue = $instance.EnableLabelCoauth
}

#FileCopiedToCloudFullUrlEnabledValue
$FileCopiedToCloudFullUrlEnabledValue = $false
$valueToParse = ($EndpointDlpGlobalSettingsValue | Where-Object { $_.Setting -eq 'FileCopiedToCloudFullUrlEnabled' }).Value
if (-not [System.String]::IsNullOrEmpty($valueToParse))
{
$FileCopiedToCloudFullUrlEnabledValue = [Boolean]::Parse($valueToParse)
}

$results = @{
IsSingleInstance = 'Yes'
AdvancedClassificationEnabled = $AdvancedClassificationEnabledValue
BandwidthLimitEnabled = $BandwidthLimitEnabledValue
FileCopiedToCloudFullUrlEnabled = $FileCopiedToCloudFullUrlEnabledValue
DailyBandwidthLimitInMB = $DailyBandwidthLimitInMBValue
PathExclusion = $PathExclusionValue
MacPathExclusion = $MacPathExclusionValue
Expand All @@ -482,7 +530,7 @@ function Get-TargetResource
DLPRemovableMediaGroups = $DLPRemovableMediaGroupsValue
DLPNetworkShareGroups = $DlpNetworkShareGroupsValue
VPNSettings = $VPNSettingsValue
EnableLabelCoauth = $instance.EnableLabelCoauth
EnableLabelCoauth = $EnableLabelCoauthValue
EnableSpoAipMigration = $instance.EnableSpoAipMigration
QuarantineParameters = $QuarantineParametersValue
Credential = $Credential
Expand Down Expand Up @@ -569,6 +617,10 @@ function Set-TargetResource
[Microsoft.Management.Infrastructure.CimInstance[]]
$EvidenceStoreSettings,

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

[Parameter()]
[System.Boolean]
$IncludePredefinedUnallowedBluetoothApps,
Expand Down Expand Up @@ -1092,6 +1144,10 @@ function Test-TargetResource
[Microsoft.Management.Infrastructure.CimInstance[]]
$EvidenceStoreSettings,

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

[Parameter()]
[System.Boolean]
$IncludePredefinedUnallowedBluetoothApps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,26 @@ class MSFT_PolicyConfigQuarantineParameters
class MSFT_SCPolicyConfig : OMI_BaseResource
{
[Key, Description("Accepted value is 'Yes'."), ValueMap{"Yes"}, Values{"Yes"}] String IsSingleInstance;
[Write, Description("TBD")] Boolean AdvancedClassificationEnabled;
[Write, Description("TBD")] Boolean AuditFileActivity;
[Write, Description("TBD")] Boolean BandwidthLimitEnabled;
[Write, Description("Default value is false.")] Boolean AdvancedClassificationEnabled;
[Write, Description("Default value is false.")] Boolean AuditFileActivity;
[Write, Description("Default value is true.")] Boolean BandwidthLimitEnabled;
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigBusinessJustificationList")] String BusinessJustificationList[];
[Write, Description("TBD")] String CloudAppMode;
[Write, Description("Default value is Off.")] String CloudAppMode;
[Write, Description("TBD")] String CloudAppRestrictionList[];
[Write, Description("TBD")] UInt32 CustomBusinessJustificationNotification;
[Write, Description("TBD")] UInt32 DailyBandwidthLimitInMB;
[Write, Description("Default value is 0.")] UInt32 CustomBusinessJustificationNotification;
[Write, Description("Default value is 1000")] UInt32 DailyBandwidthLimitInMB;
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigDLPAppGroups")] String DLPAppGroups[];
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigDLPNetworkShareGroups")] String DLPNetworkShareGroups[];
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigDLPPrinterGroups")] String DLPPrinterGroups[];
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigDLPRemovableMediaGroups")] String DLPRemovableMediaGroups[];
[Write, Description("TBD")] Boolean IncludePredefinedUnallowedBluetoothApps;
[Write, Description("TBD")] Boolean MacDefaultPathExclusionsEnabled;
[Write, Description("Default value is true.")] Boolean IncludePredefinedUnallowedBluetoothApps;
[Write, Description("Default value is true.")] Boolean MacDefaultPathExclusionsEnabled;
[Write, Description("TBD")] String MacPathExclusion[];
[Write, Description("TBD")] Boolean NetworkPathEnforcementEnabled;
[Write, Description("Default value is false.")] Boolean NetworkPathEnforcementEnabled;
[Write, Description("TBD")] String NetworkPathExclusion;
[Write, Description("TBD")] String PathExclusion[];
[Write, Description("TBD")] Boolean serverDlpEnabled;
[Write, Description("Default value is false")] Boolean serverDlpEnabled;
[Write, Description("Default value is false")] Boolean FileCopiedToCloudFullUrlEnabled;
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigEvidenceStoreSettings")] String EvidenceStoreSettings;
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigDLPSiteGroups")] String SiteGroups[];
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigApp")] String UnallowedApp[];
Expand All @@ -162,8 +163,8 @@ class MSFT_SCPolicyConfig : OMI_BaseResource
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigApp")] String UnallowedBrowser[];
[Write, Description("TBD"), EmbeddedInstance("MSFT_PolicyConfigQuarantineParameters")] String QuarantineParameters;
[Write, Description("TBD")] String VPNSettings[];
[Write, Description("TBD")] Boolean EnableLabelCoauth;
[Write, Description("TBD")] Boolean EnableSpoAipMigration;
[Write, Description("The EnableLabelCoauth parameter enables or disables co-authoring support in Office desktop apps for the entire organization. Default value is false.")] Boolean EnableLabelCoauth;
[Write, Description("The EnableSpoAipMigration parameter enables or disables built-in labeling for supported Office files in SharePoint and OneDrive.")] Boolean EnableSpoAipMigration;
[Write, Description("Credentials of the workload's Admin"), EmbeddedInstance("MSFT_Credential")] string Credential;
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
Expand Down
Loading