- Press Win + R keys together on your keyboard, type:
gpedit.msc, and press Enter.
- Group Policy Editor will open. Go to Computer Configuration\Administrative Templates\System\Logon.
- Double-click on the policy option Enumerate local users on domain-joined computers on the right.

- Set it to Enabled.

You are done!
You might need to restart the computer to make changes to take effect. You can also force update the active Group Policies.