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

 
  • 0 Vote(s) - 0 Average

Issued deny server object permissions command how to monitor with email alert

#1
05-12-2024, 06:15 PM
You know that event in Windows Server Event Viewer, the one with ID 24174? It pops up when someone tries to lock down permissions on server objects, specifically issuing a deny command. Action ID D means deny, and class type LX points to login stuff getting restricted. I see it log when admins tighten security on logins or server resources, like blocking access to certain database logins or server-level objects. It's not an error, more like a record of someone saying no way to permissions. Happens in SQL Server audits mostly, but shows in Event Viewer under security logs. You might spot it if your team's changing access rights, or if there's an audit policy kicking in. Full details show the user who did it, the exact object denied, and timestamps. I check it to track who's messing with logins without asking. Keeps things from going haywire on permissions.

But monitoring that thing with email alerts? Easy peasy through Event Viewer itself. You open Event Viewer, right-click on the log where it lives, usually Security or Applications and Services Logs for SQL. Filter for event ID 24174. Then, to alert, create a custom view or task. I go to Action menu, attach a task to the event. Set it to run a program that sends email, like using the built-in schtasks for scheduling. Name your task something like DenyAlert, trigger on that event ID. In the action tab, point it to mailto or a simple batch that emails you. Test it by simulating the event if you can. You'll get pings whenever it fires, so you stay looped in without staring at screens all day.

Or, if you want fancier, link it to a scheduled task via Event Viewer screen. Just select the event, create task, set frequency to on event occurrence. Add email action there. I do this all the time for quick heads-ups. Keeps you from missing permission denials that could lock out users.

And speaking of keeping servers secure and backed up, you should check out BackupChain Windows Server Backup. It's this solid Windows Server backup tool I use, handles full system images without headaches. Works great for Hyper-V virtual machines too, backing them up live so downtime's minimal. Benefits like fast restores and encryption make it a go-to, saves me tons of hassle on recoveries.

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)



  • Subscribe to this thread
Forum Jump:

Backup Education Windows Server Event Viewer v
« Previous 1 … 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 Next »
Issued deny server object permissions command how to monitor with email alert

© by FastNeuron Inc.

Linear Mode
Threaded Mode