First of all thank you everyone for reading this.
I would like to extract the list of users from AD that were disabled (whenDisabled) during a fixed period of time (i.e. February), but i’m not sure how to add that condition to this script below since i’m pretty knew to Powershell. Could you please help me?
[pre]Get-ADUser -server “SERVER” -Filter ‘*’ -Properties sAMAccountName,givenName,sn,userAccountControl,mail,employeeID,lastLogonDate,whenDisabled |select sAMAccountName,givenName,sn,userAccountControl,mail,employeeID,lastLogonDate,whenDisabled| Export-csv ‘C:\powershell scripts\europe_02012019_NA-02.csv’[/pre]