I have a input file with the distinguishednames in the format CN=...dc=com for a list of 300 users
looking to finalize the script below to get results.
Import-CSV C:\users.csv |
Get-QADUser $_.users -Properties * | Select samaccountname, Name, Userprincipalname, lastLogon, lastLogonTimestamp |
The export is not giving the right results... I guess its not appending to the file when looping for users. need to add an array?
any better way to do it?