While preparing schema for Exchange Server 2016, I got the below error
"this user isn’t a member of the ‘Schema/Enterprise Admins’ groups."
Error snapshot below:
I added the user in Enterprise admin and Schema admin group and re-executed the command, but landed with same error.
While checking properties for user account in active directory, noticed that primary group still set to domain users.
I changed the primary group to Enterprise Admin and restarted the server.
Executed the same command and issue got resolved.