May 15 2021 04:20 AM
Extract "Password Last set, Password expires, Password changeable, Password required, User may change password" property for all Staff OU users and export to csv
May 17 2021 03:18 PM
Hello @Billvel,
Did you look into Get-ADUser and Export-Csv?
Get-ADUser -Filter * -SearchBase "OU=Staff,OU=UserAccounts,DC=FABRIKAM,DC=COM"- Properties * | Export-Csv -NoTypeInformation -Path Users report.csv
Hope that helps.