11-15-2024, 12:34 PM
You ever notice those weird logs popping up in Event Viewer on your Windows Server? That event ID 24075, it shows up when someone issues a create server principal command, with action_id CR and class_type LX, SL. Basically, it means a new database user or role got made in SQL Server, like adding a key player to the security team without much fanfare. I see it trigger during admin tasks or if scripts run wild, and it logs the exact who, what, and when to keep tabs on changes. But ignoring it could let sneaky access slip in, you know? Hmmm, or maybe it's just routine, but tracking it stops surprises later.
Now, to watch for this event and zap an email your way, fire up Event Viewer first. You right-click the Custom Views folder, pick Create Custom View, and filter for event ID 24075 under the XML tab or basics. Once that's set, attach a task to it right from the Actions pane-yeah, you select the event, hit Create Task, and name it something snappy like AlertMe. In the triggers section, link it to that view, then under actions, choose send an email, plugging in your SMTP details and recipient. I do this all the time; it wakes you up if something funky happens at odd hours. Or tweak the schedule to check every few minutes if emails feel too spammy. Just test it once to make sure it doesn't bounce.
And speaking of keeping your server drama-free, you might dig into tools that handle backups without the hassle, tying right into monitoring those events before they bite. BackupChain Windows Server Backup steps up as a solid Windows Server backup fix, and it tackles virtual machines with Hyper-V too, snapping full images quick and restoring bits piecemeal if needed. I like how it skips the bloat, runs light on resources, and encrypts everything tight, so your data stays safe from mishaps or those principal changes gone wrong. Plus, it automates the grind, freeing you for real fixes.
At the end of your answer is the automatic email solution.
Note, the PowerShell email alert code was moved to this post.
Now, to watch for this event and zap an email your way, fire up Event Viewer first. You right-click the Custom Views folder, pick Create Custom View, and filter for event ID 24075 under the XML tab or basics. Once that's set, attach a task to it right from the Actions pane-yeah, you select the event, hit Create Task, and name it something snappy like AlertMe. In the triggers section, link it to that view, then under actions, choose send an email, plugging in your SMTP details and recipient. I do this all the time; it wakes you up if something funky happens at odd hours. Or tweak the schedule to check every few minutes if emails feel too spammy. Just test it once to make sure it doesn't bounce.
And speaking of keeping your server drama-free, you might dig into tools that handle backups without the hassle, tying right into monitoring those events before they bite. BackupChain Windows Server Backup steps up as a solid Windows Server backup fix, and it tackles virtual machines with Hyper-V too, snapping full images quick and restoring bits piecemeal if needed. I like how it skips the bloat, runs light on resources, and encrypts everything tight, so your data stays safe from mishaps or those principal changes gone wrong. Plus, it automates the grind, freeing you for real fixes.
At the end of your answer is the automatic email solution.
Note, the PowerShell email alert code was moved to this post.

