Skip to content
New issue

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

HealthCheck - Empty Groups #172

Closed
2 tasks done
rebelinux opened this issue Jun 9, 2024 · 0 comments · Fixed by #181
Closed
2 tasks done

HealthCheck - Empty Groups #172

rebelinux opened this issue Jun 9, 2024 · 0 comments · Fixed by #181
Assignees
Labels
change request Request a new change or an improvement
Milestone

Comments

@rebelinux
Copy link
Collaborator

Description

Add condition to check for empty groups

PS C:\Users\administrator.PHARMAX> Get-ADGroup -Filter * -Properties Members | where {-not $_.members} | select Name, distinguishedName

Name                                    distinguishedName
----                                    -----------------
Allowed RODC Password Replication Group CN=Allowed RODC Password Replication Group,CN=Users,DC=acad,DC=pharmax,DC=local
Read-only Domain Controllers            CN=Read-only Domain Controllers,CN=Users,DC=acad,DC=pharmax,DC=local
Cloneable Domain Controllers            CN=Cloneable Domain Controllers,CN=Users,DC=acad,DC=pharmax,DC=local
Protected Users                         CN=Protected Users,CN=Users,DC=acad,DC=pharmax,DC=local
Key Admins                              CN=Key Admins,CN=Users,DC=acad,DC=pharmax,DC=local
DnsAdmins                               CN=DnsAdmins,CN=Users,DC=acad,DC=pharmax,DC=local
DnsUpdateProxy                          CN=DnsUpdateProxy,CN=Users,DC=acad,DC=pharmax,DC=local
DHCP Users                              CN=DHCP Users,CN=Users,DC=acad,DC=pharmax,DC=local
DHCP Administrators                     CN=DHCP Administrators,CN=Users,DC=acad,DC=pharmax,DC=local
Domain Computers                        CN=Domain Computers,CN=Users,DC=acad,DC=pharmax,DC=local
Domain Controllers                      CN=Domain Controllers,CN=Users,DC=acad,DC=pharmax,DC=local
Domain Users                            CN=Domain Users,CN=Users,DC=acad,DC=pharmax,DC=local
Domain Guests                           CN=Domain Guests,CN=Users,DC=acad,DC=pharmax,DC=local
RAS and IAS Servers                     CN=RAS and IAS Servers,CN=Users,DC=acad,DC=pharmax,DC=local
Server Operators                        CN=Server Operators,CN=Builtin,DC=acad,DC=pharmax,DC=local
Account Operators                       CN=Account Operators,CN=Builtin,DC=acad,DC=pharmax,DC=local
Terminal Server License Servers         CN=Terminal Server License Servers,CN=Builtin,DC=acad,DC=pharmax,DC=local
Print Operators                         CN=Print Operators,CN=Builtin,DC=acad,DC=pharmax,DC=local
Replicator                              CN=Replicator,CN=Builtin,DC=acad,DC=pharmax,DC=local
Remote Desktop Users                    CN=Remote Desktop Users,CN=Builtin,DC=acad,DC=pharmax,DC=local
Network Configuration Operators         CN=Network Configuration Operators,CN=Builtin,DC=acad,DC=pharmax,DC=local
Performance Monitor Users               CN=Performance Monitor Users,CN=Builtin,DC=acad,DC=pharmax,DC=local
Performance Log Users                   CN=Performance Log Users,CN=Builtin,DC=acad,DC=pharmax,DC=local
Distributed COM Users                   CN=Distributed COM Users,CN=Builtin,DC=acad,DC=pharmax,DC=local
IIS_IUSRS                               CN=IIS_IUSRS,CN=Builtin,DC=acad,DC=pharmax,DC=local
Cryptographic Operators                 CN=Cryptographic Operators,CN=Builtin,DC=acad,DC=pharmax,DC=local
Event Log Readers                       CN=Event Log Readers,CN=Builtin,DC=acad,DC=pharmax,DC=local
RDS Remote Access Servers               CN=RDS Remote Access Servers,CN=Builtin,DC=acad,DC=pharmax,DC=local
RDS Endpoint Servers                    CN=RDS Endpoint Servers,CN=Builtin,DC=acad,DC=pharmax,DC=local
RDS Management Servers                  CN=RDS Management Servers,CN=Builtin,DC=acad,DC=pharmax,DC=local
Hyper-V Administrators                  CN=Hyper-V Administrators,CN=Builtin,DC=acad,DC=pharmax,DC=local
Access Control Assistance Operators     CN=Access Control Assistance Operators,CN=Builtin,DC=acad,DC=pharmax,DC=local
Remote Management Users                 CN=Remote Management Users,CN=Builtin,DC=acad,DC=pharmax,DC=local
Storage Replica Administrators          CN=Storage Replica Administrators,CN=Builtin,DC=acad,DC=pharmax,DC=local


PS C:\Users\administrator.PHARMAX>

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.
@rebelinux rebelinux added the change request Request a new change or an improvement label Jun 9, 2024
@rebelinux rebelinux self-assigned this Jun 9, 2024
rebelinux added a commit to rebelinux/AsBuiltReport.Microsoft.AD that referenced this issue Jun 10, 2024
@rebelinux rebelinux reopened this Jun 13, 2024
@rebelinux rebelinux added this to the v0.8.2 milestone Jun 14, 2024
@rebelinux rebelinux mentioned this issue Jun 15, 2024
7 tasks
@rebelinux rebelinux mentioned this issue Jun 15, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Request a new change or an improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant