Ad Widget

Collapse

when creating and deleting windows server accounts monitoring?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aldms1126
    Junior Member
    • Sep 2021
    • 14

    #1

    when creating and deleting windows server accounts monitoring?

    For linux, there is a trigger to check passwd. I'd like to set windows the same way, is there a way?
    I tried to check the sam file, but the sam file size doesn't change when I create an account.
    Please let me know if there is a good way.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you want to check the number of registered local users, you can use PowerShell to get the value. You can use the Zabbix agent UserParameter to call a PowerShell script to get the number of registered users. And how about a realization method that detects that a user has been added or deleted by increasing or decreasing the value of that item?

    ex. get local user count by PowerShell
    Code:
    (Get-WmiObject Win32_UserAccount).Length
    If you want to check exactly what users have been added, you need to implement it more strictly. It should be noted that users may be deleted and added in a short period of time and the total number of users may not change.

    Comment

    Working...