From 9b54ca1afdc48f44bbd7c95ec6e90f6b6bebadc8 Mon Sep 17 00:00:00 2001 From: BNWEIN Date: Fri, 21 Jul 2023 10:04:52 +0100 Subject: [PATCH] Fixed incorrect log message Fixed incorrect log message --- Standards_DisableM365GroupUsers/run.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Standards_DisableM365GroupUsers/run.ps1 b/Standards_DisableM365GroupUsers/run.ps1 index b4808a0b466a..a6e1b1a94a03 100644 --- a/Standards_DisableM365GroupUsers/run.ps1 +++ b/Standards_DisableM365GroupUsers/run.ps1 @@ -5,8 +5,8 @@ try { ($CurrentState.values | Where-Object { $_.name -eq 'EnableGroupCreation' }).value = "false" $body = "{values : $($CurrentState.values | ConvertTo-Json -Compress)}" (New-GraphPostRequest -tenantid $tenant -Uri "https://graph.microsoft.com/beta/settings/$($CurrentState.id)" -Type patch -Body $body -ContentType "application/json") - Write-LogMessage -API "Standards" -tenant $tenant -message "Standards API: Disabled users from creating Security Groups." -sev Info + Write-LogMessage -API "Standards" -tenant $tenant -message "Standards API: Disabled users from creating M365 Groups." -sev Info } catch { - Write-LogMessage -API "Standards" -tenant $tenant -message "Failed to disable users from creating Security Groups: $($_.exception.message)" -sev "Error" + Write-LogMessage -API "Standards" -tenant $tenant -message "Failed to disable users from creating M365 Groups: $($_.exception.message)" -sev "Error" }