diff --git a/microsoft-365/solutions/manage-creation-of-groups.md b/microsoft-365/solutions/manage-creation-of-groups.md index 183fe73fed3..d870db296e7 100644 --- a/microsoft-365/solutions/manage-creation-of-groups.md +++ b/microsoft-365/solutions/manage-creation-of-groups.md @@ -136,7 +136,7 @@ if(!$settingsObjectID) } -$groupId = (Get-MgBetaGroup | Where-object {$_.displayname -eq $GroupName}).Id +$groupId = (Get-MgBetaGroup -all | Where-object {$_.displayname -eq $GroupName}).Id $params = @{ templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"