DrZl0

Azure AD - User Check

Feb 23rd, 2021
539
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Getting active accounts with "PasswordNeverExpires" from Active Directory
  2. #The output information is written to a file result.csv
  3. #The script requires the active Directory PowerShell module installed
  4.  
  5. get-aduser -filter * -properties Name, PasswordNeverExpires | where { $_.passwordNeverExpires -eq "true" } | where {$_.enabled -eq "true"} | Export-Csv C:\Result.csv -NoTypeInformation -Force
RAW Paste Data