Hello Salem Mubarak,
Thank you for posting in Q&A forum.
Unfortunately, from my searches, there is no built-in Group Policy or registry setting to save all user logs in Active Directory to a file. However, you can create a custom solution using Powershell scripts. PowerShell provides powerful AD cmdlets that can easily query and export details of AD objects.
You can create a PowerShell script that collects detailed information about all users in Active Directory, including username, computer name (if a workstation member), OU, date and time, and outputs the results to a CSV file.
If you need help with this, I suggest you post a new question on the forum with the PowerShell tag specifically to discuss how to create a script to collect all user log information and save it to a file.
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.