You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardDisableTNEF.ps1
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,8 @@ function Invoke-CIPPStandardDisableTNEF {
53
53
if ($CurrentState.TNEFEnabled-eq$false) {
54
54
Write-LogMessage-API 'Standards'-tenant $tenant-message 'TNEF is disabled for Default Remote Domain'-sev Info
55
55
} else {
56
-
Write-StandardsAlert-message 'TNEF is not disabled for Default Remote Domain'-object $CurrentState-tenant $tenant-standardName 'DisableTNEF'-standardId $Settings.standardId
Write-StandardsAlert-message 'TNEF is not disabled for Default Remote Domain'-object $Object-tenant $tenant-standardName 'DisableTNEF'-standardId $Settings.standardId
57
58
Write-LogMessage-API 'Standards'-tenant $tenant-message 'TNEF is not disabled for Default Remote Domain'-sev Info
@@ -77,7 +77,8 @@ function Invoke-CIPPStandardGlobalQuarantineNotifications {
77
77
if ($CurrentState.EndUserSpamNotificationFrequency-eq$WantedState) {
78
78
Write-LogMessage-API 'Standards'-tenant $Tenant-message "Global Quarantine Notifications are set to the desired value of $WantedState"-sev Info
79
79
} else {
80
-
Write-StandardsAlert-message "Global Quarantine Notifications are not set to the desired value of $WantedState"-object $CurrentState-tenant $Tenant-standardName 'GlobalQuarantineNotifications'-standardId $Settings.standardId
Write-StandardsAlert-message "Global Quarantine Notifications are not set to the desired value of $WantedState"-object $Object-tenant $Tenant-standardName 'GlobalQuarantineNotifications'-standardId $Settings.standardId
81
82
Write-LogMessage-API 'Standards'-tenant $Tenant-message "Global Quarantine Notifications are not set to the desired value of $WantedState"-sev Info
@@ -70,25 +70,29 @@ function Invoke-CIPPStandardMailContacts {
70
70
if ($CurrentInfo.marketingNotificationEmails-eq$Contacts.MarketingContact) {
71
71
Write-LogMessage-API 'Standards'-tenant $tenant-message "Marketing contact email is set to $($Contacts.MarketingContact)"-sev Info
72
72
} else {
73
-
Write-StandardsAlert-message "Marketing contact email is not set to $($Contacts.MarketingContact)"-object $CurrentInfo-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
Write-StandardsAlert-message "Marketing contact email is not set to $($Contacts.MarketingContact)"-object $Object-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
74
75
Write-LogMessage-API 'Standards'-tenant $tenant-message "Marketing contact email is not set to $($Contacts.MarketingContact)"-sev Info
75
76
}
76
77
if ($CurrentInfo.securityComplianceNotificationMails-eq$Contacts.SecurityContact) {
77
78
Write-LogMessage-API 'Standards'-tenant $tenant-message "Security contact email is set to $($Contacts.SecurityContact)"-sev Info
78
79
} else {
79
-
Write-StandardsAlert-message "Security contact email is not set to $($Contacts.SecurityContact)"-object $CurrentInfo-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
Write-StandardsAlert-message "Security contact email is not set to $($Contacts.SecurityContact)"-object $Object-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
80
82
Write-LogMessage-API 'Standards'-tenant $tenant-message "Security contact email is not set to $($Contacts.SecurityContact)"-sev Info
81
83
}
82
84
if ($CurrentInfo.technicalNotificationMails-eq$Contacts.TechContact) {
83
85
Write-LogMessage-API 'Standards'-tenant $tenant-message "Technical contact email is set to $($Contacts.TechContact)"-sev Info
84
86
} else {
85
-
Write-StandardsAlert-message "Technical contact email is not set to $($Contacts.TechContact)"-object $CurrentInfo-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
Write-StandardsAlert-message "Technical contact email is not set to $($Contacts.TechContact)"-object $Object-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
86
89
Write-LogMessage-API 'Standards'-tenant $tenant-message "Technical contact email is not set to $($Contacts.TechContact)"-sev Info
87
90
}
88
91
if ($CurrentInfo.privacyProfile.contactEmail-eq$Contacts.GeneralContact) {
89
92
Write-LogMessage-API 'Standards'-tenant $tenant-message "General contact email is set to $($Contacts.GeneralContact)"-sev Info
90
93
} else {
91
-
Write-StandardsAlert-message "General contact email is not set to $($Contacts.GeneralContact)"-object $CurrentInfo-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
94
+
$Object=$CurrentInfo|Select-Object privacyProfile
95
+
Write-StandardsAlert-message "General contact email is not set to $($Contacts.GeneralContact)"-object $Object-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
92
96
Write-LogMessage-API 'Standards'-tenant $tenant-message "General contact email is not set to $($Contacts.GeneralContact)"-sev Info
@@ -51,7 +51,8 @@ function Invoke-CIPPStandardMessageExpiration {
51
51
if ($MessageExpiration-eq'12:00:00') {
52
52
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Transport configuration message expiration is set to 12 hours'-sev Info
53
53
} else {
54
-
Write-StandardsAlert-message 'Transport configuration message expiration is not set to 12 hours'-object $MessageExpiration-tenant $tenant-standardName 'MessageExpiration'-standardId $Settings.standardId
Write-StandardsAlert-message 'Transport configuration message expiration is not set to 12 hours'-object $Object-tenant $tenant-standardName 'MessageExpiration'-standardId $Settings.standardId
55
56
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Transport configuration message expiration is not set to 12 hours'-sev Info
0 commit comments