To retrieve a list of configured users on Active Directory in Windows Server 2023 Core, you can use PowerShell. Here's a command you can use:
Get-ADUser -Filter * | Select-Object Name, SamAccountName
This command will list all configured users and display their names and SamAccountNames. You can run this command in PowerShell on the Windows Server 2023 Core environment.