Skip to main content

Get-NewLocalUser

Description​

Gets newly added users since the last run of the script.

Requirements​

  • Run as administrator
  • PowerShell v5

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

.\Get-NewLocalUser.ps1

Output​

Log Files​

  • .\Get-NewLocalUser-log.txt

Tables​

  • Get-NewLocalUser_log
  • Get-NewLocalUser_users

Changelog​

2025-04-10​

  • Initial version of the document