These are the scripts that I use to help maintain Active Directory environments that I'm responsible for or scripts I have written to help automate tasks that I'm willing to share.
- Powershellbros.com DC Health E-mail Report (https://www.powershellbros.com/basic-dc-health-email-report-via-powershell/)
- Full Script: http://www.powershellbros.com/wp-content/uploads/2018/01/DCHealth.txt
- This was a script that I wrote in order to make sure all properties on user objects were filled out to sync the user objects up to Azure AD
- Change AD User Attributes by OU Location
- This script was written after one of our Domain Controller DNS records disappeared in our external DNS provider. This script will monitor the DNS records and report back if any of your Domain Controller's disappear from DNS.
- Check External DNS for DC Records
- This script was written because we have many OU Admins in Active Directory and they all have the ability to delete user objects they own. In order to monitor for accidently deleted user objects this script was written.
- Check For Deleted User Objects in AD Recycle Bin
- This script was written to monitor the Windows Firewall Logs on our Domain Controllers to look for any suspicious activity. Most notably anything incoming that is explicity denied such as WinRM or RDP traffic coming from a disallowed location.
- Monitor Domain Controller Firewall Logs
- This script was written to check all of the extensionAttributes 1-15 on Users, Computers, and Groups to see if they are in use.
- Check AD Extension Attributes
- This script was written as a template that can be used to kick out quick PowerShell reports via E-mail and have it be legiable.
- E-mail Report Template