Forum Discussion
Billvel
May 15, 2021Copper Contributor
Extract "pwdLastSet, Password expires, Password changeable, Password required, PowerShell
Extract "Password Last set, Password expires, Password changeable, Password required, User may change password" property for all Staff OU users and export to csv
AndySvints
May 17, 2021Steel Contributor
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.csvHope that helps.