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 - Remove Inactive AD Admin Accounts #100

Closed
rebelinux opened this issue Jun 16, 2023 · 0 comments · Fixed by #111
Closed

HealthCheck - Remove Inactive AD Admin Accounts #100

rebelinux opened this issue Jun 16, 2023 · 0 comments · Fixed by #111

Comments

@rebelinux
Copy link
Collaborator

Unused or underutilized accounts in highly privileged groups, outside of any break-glass emergency
accounts like the default Administrator account, should have their AD Admin privileges removed.

Get-ADGroupMember 'Administrators' -Recursive | Get-ADUser -property
SAMAccountName,DisplayName,LastLogonDate,PasswordLastSet,Description,Created,
UserPrincipalName | Where-Object {($.LastLogonDate -le (Get-Date).AddDays(-
30)) -AND ($
.PasswordLastSet -le (Get-Date).AddDays(-365))}

rebelinux added a commit to rebelinux/AsBuiltReport.Microsoft.AD that referenced this issue Jun 17, 2023
@rebelinux rebelinux mentioned this issue Jun 23, 2023
7 tasks
@rebelinux rebelinux mentioned this issue Jun 23, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant