Hi zdog59,
It's a kind of tricky thing but it can be done.
First of all, you can set any Attribute of an AD user using "setAttribute".
If you want to change the email of a user, you do the following:
user.setAttribute("mail", strEmail);
(user represent an AD:User object in Orchestrator)
All the properties in the AD "Account Options" tab of the Active Directory are set in the property userAccountControl.
You need to find the right value for your needs. The following URL tells you the values for each option:
https://support.microsoft.com/en-us/kb/305144
To set Password Never Expires you need to add: NORMAL_ACCOUNT (512) + DONT_EXPIRE_PASSWORD (65536) = 66048
So, you need to do the following:
user.setAttribute("userAccountControl", 66048);
User Cannot Change Password is a complete different thing, it's not an attribute but a property of the object. This URL explains it how to change it by code in .NET:
https://msdn.microsoft.com/en-us/library/aa746398.aspx
Hope this helps you.
D.