In LDAP, the UserAccountControl attribute is used to define user account properties in Active Directory (AD). The value 512 corresponds to a "normal" enabled account. If you need to set or modify this attribute to 512, follow the steps below .
Open PowerShell as Administrator. Run the following command to set the attribute to 512 (Normal Account):
Set-ADUser -Identity "Username" -Replace @{userAccountControl=512}