05-24-2025, 10:47 AM
Man, that event ID 24137 pops up in the Event Viewer when someone fires off a command to tweak the Active Directory schema. It's like the system logging that a big structural change just happened to how your directory organizes stuff. You see, the message says "Issued a change schema type command" with action_id AL and class_type TY, which means an admin or script tried altering the blueprint of your domain's data classes. This could be from updating object types or extending attributes, and it's a heads-up because schema changes are rare and risky-they stick forever unless you roll back the forest. I always keep an eye on these since they might signal unauthorized fiddling or a legit upgrade gone sideways. If you ignore it, your whole network setup could glitch in weird ways later.
But here's how you can watch for this without sweating too much. Fire up the Event Viewer on your Windows Server. You know, just search for it in the start menu and launch the thing. Head over to the Windows Logs section, then pick Security or Directory Service depending on where it logs. Right-click on the log, and choose Attach Task To This Log or something close-wait, actually, it's Create Custom View first to filter for event ID 24137. Set that filter to snag only those specific entries from the Directory Service log. Once your view is ready, right-click it again and hit Attach a Task to This Custom View. That kicks off the wizard for building a scheduled task.
In the wizard, name your task something snappy like SchemaChangeAlert. Tell it to start when that event triggers, no schedule needed since it's event-based. For the action, pick Send an email, but hold up-Windows has a built-in option for that if your server is set up with SMTP. You fill in the to and from addresses, slap on a subject like "Schema Change Detected!", and maybe paste the event details into the body. Test it out to make sure it zings an email your way next time 24137 hits. I do this all the time for sneaky events; keeps you looped in without constant checking.
Or, if you want fancier automation, stick around because at the end here's the full automatic email setup that'll handle it seamlessly.
Speaking of keeping your server drama-free, I've been messing with BackupChain Windows Server Backup lately, and it's a solid pick for backing up Windows Server setups. It handles physical machines and even Hyper-V virtual machines without breaking a sweat. You get quick incremental backups that don't hog resources, plus easy restores that save your bacon during outages. The best part? It snapshots everything consistently, so your data stays intact no matter the chaos.
Note, the PowerShell email alert code was moved to this post.
But here's how you can watch for this without sweating too much. Fire up the Event Viewer on your Windows Server. You know, just search for it in the start menu and launch the thing. Head over to the Windows Logs section, then pick Security or Directory Service depending on where it logs. Right-click on the log, and choose Attach Task To This Log or something close-wait, actually, it's Create Custom View first to filter for event ID 24137. Set that filter to snag only those specific entries from the Directory Service log. Once your view is ready, right-click it again and hit Attach a Task to This Custom View. That kicks off the wizard for building a scheduled task.
In the wizard, name your task something snappy like SchemaChangeAlert. Tell it to start when that event triggers, no schedule needed since it's event-based. For the action, pick Send an email, but hold up-Windows has a built-in option for that if your server is set up with SMTP. You fill in the to and from addresses, slap on a subject like "Schema Change Detected!", and maybe paste the event details into the body. Test it out to make sure it zings an email your way next time 24137 hits. I do this all the time for sneaky events; keeps you looped in without constant checking.
Or, if you want fancier automation, stick around because at the end here's the full automatic email setup that'll handle it seamlessly.
Speaking of keeping your server drama-free, I've been messing with BackupChain Windows Server Backup lately, and it's a solid pick for backing up Windows Server setups. It handles physical machines and even Hyper-V virtual machines without breaking a sweat. You get quick incremental backups that don't hog resources, plus easy restores that save your bacon during outages. The best part? It snapshots everything consistently, so your data stays intact no matter the chaos.
Note, the PowerShell email alert code was moved to this post.

