Skip to content

Instantly share code, notes, and snippets.

View micrictor's full-sized avatar

Michael R. Torres micrictor

View GitHub Profile
Import-Module ActiveDirectory
Write-Output "*********************************************************************************"
Write-Output "** GetActiveADUsers **"
Write-Output "** This powershell script will create a CSV file containing all AD users **"
Write-Output "** that have logged in within the specified timeframe. **"
Write-Output "** **"
Write-Output "** Default values: **"
Write-Output "** Days to look back for logins: 30 **"
Write-Output "** Output file: output.csv **"

Keybase proof

I hereby claim:

  • I am micrictor on github.
  • I am micrictor (https://keybase.io/micrictor) on keybase.
  • I have a public key whose fingerprint is BE35 A11E 861E 7CE9 CA56 C094 2799 45E0 9FB9 02CF

To claim this, I am signing this object: