 <p>The error <code>0000052D</code> is a <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms681385%28v=vs.85%29.aspx" rel="nofollow">system error code</a>. Specifically, it means:</p> <blockquote> <p>ERROR_PASSWORD_RESTRICTION</p> <p>1325 (0x52D)</p> <p>Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.</p> </blockquote> <p>The problem would seem to be that the account you're enabling has a password-policy applied to it, whereby enabling it that password-policy would not be met.</p> <p>I would first figure out what the password policy is for the account, then set the password to something that meets that policy criteria before flipping the bit to enable it.</p> <p>If, however, you really want the user to be able to login with no password then the password should be set to null. But I'm not sure under what circumstances that would be desirable. </p>