Not really an issue for SCCM but quite a cool bit of PowerShell.

You know when the machine loses trust with the domain and you end up taking it out of the domain and re-adding.

Don’t bother. Just log in as admin, run PowerShell as admin and then type this

Reset-ComputerMachinePassword –server <DC hostname> -Credential <domain\username>

This resets the machine password in AD and all is good.