Since you need to compare the result, I advise you adapt the command to print the required value. The previous command you used shows some error in the output, which may prevent the regex from working correctly. For example, on my endpoint, the result is 1 instead of 3, so I used this command
```
powershell (Get-ADGroup -Identity "Domain Admins" -Properties Members).Members.Count
```
The SCA is this
```
policy:
id: "windows-standard"
file: "custom_sca_windows-standart.yml"
name: "windows startard configuration"
description: "This document provides prescriptive guidance for establishing a secure configuration Windows servers."
references:
-
https://sharepoint.comchecks:
- id: 330514
title: "Ensure AD DomainAdmins members."
description: "AD DomainAdmins members."
remediation: "Change list DomainAdmins."
condition: all
rules:
- 'c:powershell (Get-ADGroup -Identity "Domain Admins" -Properties Members).Members.Count -> n:(\d+) compare == 1'
```
You can see the result shows as passed on the Wazuh dashboard
So in your case, you can adapt the command to
```
- 'c:powershell (Get-ADGroup -Identity "Domain Admins" -Properties Members).Members.Count -> n:(\d+) compare == 3'
```