We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add healthcheck condition to check
Groups with AdminCount set to 1 (non-defaults)
$excludedGroups = @( 'Administrators', 'DNSAdmins', 'Domain Admins', 'Enterprise Admins', 'Print Operators', 'Backup Operators', 'Replicator', 'krbtgt', 'Domain Controllers', 'Schema Admins', 'Server Operators', 'Cert Publishers', 'Account Operators', 'Read-Only Domain Controllers', 'Enterprise Read-Only Domain Controllers', 'Group Policy Creator Owners', 'Key Admins', 'Enterprise Key Admins' ) Get-ADGroup -Filter "admincount -eq '1'" | Where-Object {$_.samaccountname -notin $excludedGroups } DistinguishedName : CN=SCCM-GMSA,CN=Users,DC=acad,DC=pharmax,DC=local GroupCategory : Security GroupScope : Global Name : SCCM-GMSA ObjectClass : group ObjectGUID : 7b9b2fea-c08e-4d0d-a71d-182d0698e493 SamAccountName : SCCM-GMSA SID : S-1-5-21-370360276-377477351-3184454278-1104
No response
The text was updated successfully, but these errors were encountered:
Fix HealthCheck - Groups with AdminCount set to 1 AsBuiltReport#171
5818661
8d22b0d
rebelinux
Successfully merging a pull request may close this issue.
Description
Add healthcheck condition to check
Groups with AdminCount set to 1 (non-defaults)
Additional Context
No response
Before submitting
The text was updated successfully, but these errors were encountered: