Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

User Management - New Local Account Audit And Disable DV,Autofix,Global

Summary

This script will look for any newly created account in the last 15 minutes and store complete information about the user who created the account, which new account was added, whether it is a local user, local admin, or if it has ever logged in.

Time Saved by Automation: 10 Minutes

Sample Run

This script is a function script and it only runs with the dependent remote monitor.

Dependencies

Global Parameters

NameExampleRequiredDescription
DisableLocalUser01,01 - Disable newly detected local user; 0 - Do not disable newly detected local user

Process

  • The monitor detects the newly created account based on event ID 4720.
    • This event ID triggers when the local group policy user account audit is enabled.
  • The "new account created" message is filtered to log who created the account and information about the new account.
    • It also registers information about when the account was created, whether it is an admin, domain, or non-domain account, if the password is set or not, and the last logon of both the creator and created user.
  • It also provides the option to disable the newly created user depending on the global parameter "DisableLocalUser".
  • All information is logged to the custom table custom_proval_computer_new_accounts.

Output

  • Script log
  • Custom table
  • Dataview