Checking if option is selected under System Preference on Mac
Solution 1:
This usually indicates that the domain record needs cleanup and not that the Mac is broken.
Have you removed the binding, cleared up the machine record (deleting it) and then re-adding the mac?
You could script the removal and binding or script the check in AD, but the language and script for each would be better asked as a follow on question if needed.