My husband was an active member of this group. It is with great sadness to tell you that he died at the age of 44 of a heart attack on the 9th. Thank you everyone and God Bless
Group changes – Created / Deleted – ADGroupCreateDelete
Group enumeration – ADGroupEnumeration
Group membership changes – ADGroupMembershipChanges
Group policy changes – ADGroupPolicyChanges
Logs Cleared Other – ADLogsClearedOther
Logs Cleared Security – ADLogsClearedSecurity
User changes – ADUserChanges
User changes detailed – ADUserChangesDetailed
User lockouts – ADUserLockouts
User logon – ADUserLogon
User logon Kerberos – ADUserLogonKerberos
User status changes – ADUserStatus
User unlocks – ADUserUnlocked
DatesRanges are also provided. Basically what that command does it scans DC's for event types you want it to scan. It does that in parallel, it overcomes limitations of Get-WinEvent and generally prettifies output.
In the last few months, I've limited my sharing to a minimum. Not by choice, but more like lack of time - being preoccupied with work and working on some cool PowerShell based projects. One of those projects which required a lot of effort and understanding of how Group Policies work is GPOZaurr. So today you get to meet it yourself - let me know what you think :-)
GPOZaurr is a free PowerShell module that contains a lot of different small and large cmdlets. Today's focus, however, is all about one command, Invoke-GPOZaurr.
Invoke-GPOZaurr
Just by running one line of code (of course, you need the module installed first), you can access a few built-in reports. Some of them are more advanced, some of them are for review only. Here's the full list for today. Not everything is 100% finished. Some will require some updates soon as I get more time and feedback. Feel free to report issues/improve those reports with more information.
GPOBroken – this report can detect GPOs that are broken. By broken GPOs, I mean those which exist in AD but have no SYSVOL content or vice versa – have SYSVOL content, but there's no AD metadata. Additionally, it can detect GPO objects that are no longer GroupPolicy objects (how that happens, I'm not able to tell - replication issue, I guess). Then it provides an easy way to fix it using given step by step instructions.
GPOBrokenLink – this report can detect links that have no matching GPO. For example, if a GPO is deleted, sometimes links to that GPO are not properly removed. This command can detect that and propose a solution.
GPOOwners – this report focuses on GPO Owners. By design, if Domain Admin creates GPO, the owner of GPO is the domain admins group. This report detects GPOs that are not owned by Domain Admins (in both SYSVOL and AD) and provides a way to fix them.
GPOConsistency – this report detects inconsistent permissions between Active Directory and SYSVOL, verifying that files/folders inside each GPO match permissions as required. It then provides you an option to fix it.
GPODuplicates – this report detects GPOs that are CNF, otherwise known as duplicate AD Objects, and provides a way to remove them.
GPOList – this report summarizes all group policies focusing on detecting Empty, Unlinked, Disabled, No Apply Permissions GPOs. It also can detect GPOs that are not optimized or have potential problems (disabled section, but still settings in it)
GPOLinks – this report summarizes links showing where the GPO is linked, whether it's linked to any site, cross-domain, or the status of links.
GPOPassword – this report should detect passwords stored in GPOs.
GPOPermissions – this report provides full permissions overview for all GPOs. It detects GPOs missing readmissions for Authenticated Users, GPOs that miss Domain Admins, Enterprise Admins, or SYSTEM permissions. It also detects GPOs that have Unknown permissions available. Finally, it allows you to fix permissions for all those GPOs easily. It's basically a one-stop for all permission needs.
GPOPermissionsAdministrative – this report focuses only on detecting missing Domain Admins, Enterprise Admins permissions and allows you to fix those in no time.
GPOPermissionsRead – similar to an administrative report, but this one focuses on Authenticated Users missing their permissions.
GPOPermissionsRoot – this report shows all permissions assigned to the root of the group policy container. It allows you to verify who can manage all GPOs quickly.
GPOPermissionsUnknown – this report focuses on detecting unknown permissions (deleted users) and allows you to remove them painlessly.
GPOFiles – this report lists all files in the SYSVOL folder (including hidden ones) and tries to make a decent guess whether the file placement based on extension/type makes sense or requires additional verification. This was written to find potential malware or legacy files that can be safely deleted.
GPOBlockedInheritance – this report checks for all Organizational Units with blocked inheritance and verifies the number of users or computers affected.
GPOAnalysis – this report reads all content of group policies and puts them into 70+ categories. It can show things like GPOs that do Drive Mapping, Bitlocker, Laps, Printers, etc. It's handy to find dead settings, dead hosts, or settings that no longer make sense.
NetLogonOwners – this report focuses on detecting NetLogon Owners and a way to fix it to default, secure values. NetLogonPermissions – this report provides an overview and assessment of all permissions on the NetLogon share.
SysVolLegacyFiles – this report detects SYSVOL Legacy Files (.adm) files.
Of course, GPOZaurr is not only one cmdlet - but those reports are now exposed and easy to use. This time I've not only focused on cmdlets you can use in PowerShell, but something that you can learn from and get the documentation at the same time.
To get yourself up and running you're just one command away:
Install-Module GPOZaurr -Force
Here are some screenshots to show you what the command does. Most of the reports have a description, a chart, data, and a solution to fix your issue.
Enjoy. If you like my work, I would be grateful for a star or two on Github. Thank you.
I saw someone mention Lee, whom I'd seen here for years. He stopped posting everywhere on the Internet about 7 months ago on May 15th so I went search to see if he's okay.
I was heartbroken to see that he was listed as a MISSING-ENDANGERED PERSON by his local Police Department.
Bedford Police Department is asking the public’s help to locate 66-year-old Richard “Lee” Dailey. Richard was last seen this morning [May 23, 2022] at 8:00 a.m. at Walgreens (4121 Harwood Road). Mr. Dailey has been entered as a Missing- Endangered person.
Lee has always been so helpful and friendly and has been missed here 😔 If you search for his name, so many people would write posts just to thank him.
Edit: For those of you wondering how I found him/wondering if it's surely him: I actively searched for Bedford Texas Police Dept because he listed that as his hometown on Twitter.
That, combined with the person looking like him & being about his age and the report being filed a week after he stopped posting, and his twitter handle being "R Lee Dailey" and the police report saying his first name is Richard, seems unlikely it's anyone but him 😢
BEST UPDATE EVER MADE: LEE WAS FOUND AND IS SAFE!! Great work finding this out, team!
In May, we asked for the public’s help in locating Richard Dailey, who was considered a missing-endangered person and last seen in Bedford. We are happy to report Mr. Dailey was located in Tucson, Arizona and is safe.
Enjoy your retirement, Lee. Thanks for everything you've done for the community. You're beloved and appreciated 🫶
I started a script before Christmas and thought i would share it with you, someone might find another use for it.
So my wife and I got sick of eating the same set of meals week in week out, so we put together a spreadsheet of the recipes we use on a regular basis and built a little set of Excel functions to automatically generate a menu for 4 weeks.
After a month or so we found our shopping bills had cut down by 40-50% as there was little to no waste due to things that seemed like a good idea when shopping or we just didn't have time to make.
This had some issues; we would get duplicates, we couldn't tell which would make enough for leftovers for lunch the day after and most importantly we had to check the recipes for that week and work out a shopping list.
This script addresses those issues and generates a (poorly written) HTML page for the menu and one for the shopping list which can then be printed or whatever you need to do with it.
It doesn't do Mondays and Fridays as we don't need these but if you don't go to my mum's house for tea on a Monday or Friday then you can fix this by commenting out lines 172 and 173.
Yesterday, during an open school day, a father and his son walked into the IT classroom and asked some questions about the curriculum. As a teacher, I explained that it included PowerShell. The father almost jumped scared and said he works as a system administrator in Office365 at an IT company where PowerShell wasn’t considered useful enough. He added that he preferred point-and-click tasks and found PowerShell too hard to learn. So I could have explained the benefits of PowerShell and what you can achieve with it, but he had already made up his mind "it’s hard to learn and not useful". How would you have responded to this?
So in march 2020, Microsoft is supposed to block insecure LDAP bindings. I've updated my 3 Powershell modules to help you track down machines/accounts doing that.