Skip to content

Commit

Permalink
Update Test-ExchangeSetting.Tests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Dec 14, 2024
1 parent 7bf2bef commit 7833487
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Maester/Exchange/Test-ExchangeSetting.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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

Expand All @@ -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'

Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 7833487

Please sign in to comment.