Commits any changes or updates to the User object and saves the changes to Active Directory.


void CommitWithoutCheck()


When you use this method, it does not validate any of the data before saving.


CommitWithoutCheck may throw one of the following exceptions:

  • COMException if an LDAP error occurs. LDAP errors can occur if the connection to the LDAP server fails, the connection times out, invalid credentials are presented, or there are other problems communicating with Active Directory.
  • UnauthorizedAccessException if you have insufficient access rights to commit changes on the Active Directory object.


The following code sample illustrates using CommitWithoutCheck in a script:

'Get the zone object
Set objZone = cims.GetZone("")
'Get the user object
set objUser = cims.GetUserByPath("LDAP://,CN=Users, DC=ajax,DC=org")
'Add the UNIX profile for the user
set objUserUnixProfile = objUser.AddUnixProfile(objZone, nextuid, unixlogin, defaultshell, homedir, admingid)
'Enable the user’s UNIX profile
objUserUnixProfile.UnixEnabled = True
'Update Active Directory without validating the UNIX profile