Skip to main content

Get-NewDomainAdmin

Description

The Get-NewDomainAdmin command retrieves domain users who have been granted elevated permissions since the last execution of the script.

Requirements

  • Run as administrator
  • PowerShell v5
  • Domain Controller

If the script has not been run previously, the admin data is saved to the table, and the script exits. If a new domain admin is detected from a previous run, the script returns the newly elevated users (if any).

.\Get-NewDomainAdmin.ps1

Output

Log Files

  • .\Get-NewDomainAdmin-log.txt

Tables

  • Get-NewDomainAdmin_log
  • Get-NewDomainAdmin_admins