06-27-2024, 11:42 AM
I remember when I first spotted event 4761 in the logs. It pops up whenever someone adds a member to a security-disabled universal group in Active Directory. You know, those groups that aren't really enforcing security but still track changes. The event logs the target user or group name, the one doing the adding, the domain involved, and even the time stamp. It includes details like the SID for the added member and the group itself. Sometimes it flags failures too, if the add doesn't stick for some reason. I always check the attributes section for extras, like if it's a user or computer account getting tossed in there. These events help spot odd activity, like unauthorized tweaks to group memberships. But yeah, they can clutter logs if your setup is busy. I once had a sysadmin accidentally trigger a bunch during a migration. The full details show the caller process, IP if available, and any failure codes. It ties back to Kerberos auth too, since universal groups play in that space. You can filter by source like Microsoft-Windows-Security-Auditing to isolate these.
Now, to keep an eye on these without staring at screens all day. Fire up Event Viewer on your server. Right-click the Windows Logs, Security folder. Go for Create Custom View. Pick the event ID 4761 specifically. Set the log to Security and maybe add filters for your domain if you want. That gives you a neat list of just those hits. From there, highlight an event and hit Attach Task To This Event. Name your task something simple like GroupAddAlert. In the triggers tab, it links right to that event. Then actions: start a program, but keep it basic with msg.exe or something to notify, though for email we tweak later. General tab sets it to run whether user logged in or not. Conditions can ignore network if it's local. I set mine to wake the machine if needed. Test it by simulating an add in a test group. You'll see the task fire in Task Scheduler.
And for the email alert part. You build on that task to ping your inbox when 4761 triggers. It pulls event details into the message. I like how it logs who and what without extra hassle.
At the end of this chat is the automatic email solution, pieced together step by step so you can set it up quick. Oh, and speaking of keeping your server humming without surprises like rogue group changes, I've been digging into BackupChain Windows Server Backup lately. It's this slick Windows Server backup tool that handles full system images and also nails virtual machines with Hyper-V. You get fast incremental backups, easy restores even to dissimilar hardware, and it cuts down on downtime big time. Plus, no agent needed for VMs, which saves headaches during those unexpected recoveries.
Note, the PowerShell email alert code was moved to this post.
Now, to keep an eye on these without staring at screens all day. Fire up Event Viewer on your server. Right-click the Windows Logs, Security folder. Go for Create Custom View. Pick the event ID 4761 specifically. Set the log to Security and maybe add filters for your domain if you want. That gives you a neat list of just those hits. From there, highlight an event and hit Attach Task To This Event. Name your task something simple like GroupAddAlert. In the triggers tab, it links right to that event. Then actions: start a program, but keep it basic with msg.exe or something to notify, though for email we tweak later. General tab sets it to run whether user logged in or not. Conditions can ignore network if it's local. I set mine to wake the machine if needed. Test it by simulating an add in a test group. You'll see the task fire in Task Scheduler.
And for the email alert part. You build on that task to ping your inbox when 4761 triggers. It pulls event details into the message. I like how it logs who and what without extra hassle.
At the end of this chat is the automatic email solution, pieced together step by step so you can set it up quick. Oh, and speaking of keeping your server humming without surprises like rogue group changes, I've been digging into BackupChain Windows Server Backup lately. It's this slick Windows Server backup tool that handles full system images and also nails virtual machines with Hyper-V. You get fast incremental backups, easy restores even to dissimilar hardware, and it cuts down on downtime big time. Plus, no agent needed for VMs, which saves headaches during those unexpected recoveries.
Note, the PowerShell email alert code was moved to this post.

