Skip to content

Commit bccb3cf

Browse files
committed
Fixing Intune capitalisation
1 parent c753bf2 commit bccb3cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneComplianceSettings.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Invoke-CIPPStandardIntuneComplianceSettings {
2020
IMPACT
2121
Low Impact
2222
POWERSHELLEQUIVALENT
23-
23+
2424
RECOMMENDEDBY
2525
UPDATECOMMENTBLOCK
2626
Run the Tools\Update-StandardsComments.ps1 script to update this comment block
@@ -39,7 +39,7 @@ function Invoke-CIPPStandardIntuneComplianceSettings {
3939

4040
if ($Settings.remediate -eq $true) {
4141
if ($StateIsCorrect -eq $true) {
42-
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message 'InTune Compliance settings is already applied correctly.' -Sev Info
42+
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message 'Intune Compliance settings is already applied correctly.' -Sev Info
4343
} else {
4444
try {
4545
$GraphRequest = @{
@@ -56,18 +56,18 @@ function Invoke-CIPPStandardIntuneComplianceSettings {
5656
} | ConvertTo-Json -Compress
5757
}
5858
New-GraphPostRequest @GraphRequest
59-
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message 'Successfully updated InTune Compliance settings.' -Sev Info
59+
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message 'Successfully updated Intune Compliance settings.' -Sev Info
6060
} catch {
61-
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Failed to update InTune Compliance settings." -Sev Error -LogData $_
61+
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Failed to update Intune Compliance settings." -Sev Error -LogData $_
6262
}
6363
}
6464
}
6565

6666
if ($Settings.alert -eq $true) {
6767
if ($StateIsCorrect -eq $true) {
68-
Write-LogMessage -API 'Standards' -tenant $tenant -message 'InTune Compliance settings is enabled.' -sev Info
68+
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Intune Compliance settings is enabled.' -sev Info
6969
} else {
70-
Write-LogMessage -API 'Standards' -tenant $tenant -message 'InTune Compliance settings is not enabled.' -sev Alert
70+
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Intune Compliance settings is not enabled.' -sev Alert
7171
}
7272
}
7373

0 commit comments

Comments
 (0)