From 7833487ea7b994bac9ba17509aad78c751fc5963 Mon Sep 17 00:00:00 2001 From: Merill Fernando Date: Sat, 14 Dec 2024 14:12:48 +1100 Subject: [PATCH] Update Test-ExchangeSetting.Tests.ps1 --- tests/Maester/Exchange/Test-ExchangeSetting.Tests.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Maester/Exchange/Test-ExchangeSetting.Tests.ps1 b/tests/Maester/Exchange/Test-ExchangeSetting.Tests.ps1 index 515eee17..16bbad4d 100644 --- a/tests/Maester/Exchange/Test-ExchangeSetting.Tests.ps1 +++ b/tests/Maester/Exchange/Test-ExchangeSetting.Tests.ps1 @@ -16,7 +16,7 @@ BeforeDiscovery { Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" { $portalLink_SecureScore = "https://security.microsoft.com/securescore" - It "MT.1037: Ensure Spam confidence level (SCL) is configured in mail transport rules with specific domains" -Tag "SetScl", "TransportRule" { + It "MT.1037: Ensure Spam confidence level (SCL) is configured in mail transport rules with specific domains" -Tag "MT.1037", "SetScl", "TransportRule" { $portalLink_TransportRules = "https://admin.exchange.microsoft.com/#/transportrules" @@ -37,7 +37,7 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" { } } - It "MT.1038: Ensure modern authentication for Exchange Online is enabled" -Tag "OAuth2ClientProfileEnabled" { + It "MT.1038: Ensure modern authentication for Exchange Online is enabled" -Tag "MT.1038", "OAuth2ClientProfileEnabled" { $result = $OrganizationConfig.OAuth2ClientProfileEnabled @@ -55,7 +55,7 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" { } } - It "MT.1039: Ensure MailTips are enabled for end users" -Tag "MailTipsExternalRecipientsTipsEnabled" { + It "MT.1039: Ensure MailTips are enabled for end users" -Tag "MT.1039", "MailTipsExternalRecipientsTipsEnabled" { #Get-OrganizationConfig | fl MailTipsAllTipsEnabled, MailTipsExternalRecipientsTipsEnabled #Set-OrganizationConfig -MailTipsAllTipsEnabled $true -MailTipsExternalRecipientsTipsEnabled $true -MailTipsGroupMetricsEnabled $true -MailTipsLargeAudienceThreshold '25' @@ -76,7 +76,7 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" { } # Y - It "MT.1040: Ensure additional storage providers are restricted in Outlook on the web" -Tag "AdditionalStorageProvidersAvailable" { + It "MT.1040: Ensure additional storage providers are restricted in Outlook on the web" -Tag "MT.1040", "AdditionalStorageProvidersAvailable" { #Get-OwaMailboxPolicy | fl Name, AdditionalStorageProvidersAvailable, ThirdPartyFileProvidersEnabled, ConditionalAccessPolicy, ChangePasswordEnabled, *Offline*, ReportJunkEmailEnabled #Set-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default -AdditionalStorageProvidersAvailable $false @@ -97,7 +97,7 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" { } # Z - It "MT.1041: Ensure users installing Outlook add-ins is not allowed" -Tag "MyCustomApps", "MyMarketplaceApps", "MyReadWriteMailboxApps" { + It "MT.1041: Ensure users installing Outlook add-ins is not allowed" -Tag "MT.1041", "MyCustomApps", "MyMarketplaceApps", "MyReadWriteMailboxApps" { #Get-ManagementRoleAssignment -Role "My Custom Apps" -RoleAssignee $defaultrole | ft -AutoSize #Get-ManagementRoleAssignment -Role "My Marketplace Apps" -RoleAssignee $defaultrole | ft -AutoSize #Get-ManagementRoleAssignment -Role "My ReadWriteMailbox Apps" -RoleAssignee $defaultrole | ft -AutoSize