• Home
  • Help
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search

 
  • 0 Vote(s) - 0 Average

Issued revoke database role permissions with cascade command how to monitor with email alert

#1
06-18-2025, 10:30 PM
Man, that event ID 24220 pops up in the Event Viewer when someone revokes database role permissions using a cascade command. It's like the system logging a big permission yank, where action_id RWC means revoke with cascade, and class_type RL points to role-level stuff in the database. You see it under the SQL Server audit logs, usually in the Security channel. This thing fires off if an admin or user strips away roles from accounts, and it cascades down to mess with related permissions too. Picture it as the database saying, hey, someone just locked out a bunch of access rights in one go. It includes details like who did it, what database, the exact command used. Without monitoring, you might miss sneaky changes that could lock folks out or open holes. I always check the event properties for the full story, timestamps, user names involved.

But you wanna keep an eye on these without staring at screens all day. Fire up Event Viewer on your Windows Server. Right-click the event log where these show, like Applications and Services Logs, Microsoft, Windows, SQL Server, Audits. Go to Attach Task To This Event Log. Pick Create Basic Task. Name it something like Revoke Alert. Set the trigger to when event ID 24220 hits. For the action, choose Start a program, but link it to a batch file that sends email, or use the built-in Send Email option if your server has it configured. You gotta set the email server details first in Task Scheduler properties. Test it by triggering a sample event if you can. That way, every time 24220 logs, you get pinged right away.

Or think about chaining this to broader server watches. I set mine to run every few minutes, scanning for the ID. Keeps things chill without constant babysitting.

And speaking of keeping your server safe from mishaps like permission revokes, you might wanna look into BackupChain Windows Server Backup too. It's this slick Windows Server backup tool that handles physical machines and virtual ones on Hyper-V without a hitch. You get fast incremental backups, easy restores even for entire VMs, and it cuts down on downtime big time. Plus, no crazy licensing fees eating your budget, just straightforward protection that lets you recover quick if something goes sideways.

Note, the PowerShell email alert code was moved to this post.

bob
Offline
Joined: Jul 2025
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Issued revoke database role permissions with cascade command how to monitor with email alert - by bob - 06-18-2025, 10:30 PM

  • Subscribe to this thread
Forum Jump:

Backup Education Windows Server Event Viewer v
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 … 49 Next »
Issued revoke database role permissions with cascade command how to monitor with email alert

© by FastNeuron Inc.

Linear Mode
Threaded Mode