public void DoAction(SynchronizeContext context) { try { var result = SynchronizeHelper.GetSearchResultByID(context.ADHelper, this.adObjectID); using (System.DirectoryServices.DirectoryEntry ent = result.GetDirectoryEntry()) { ent.Rename(oguObject.ObjectType.SchemaTypeToPrefix() + "=" + ADHelper.EscapeString(oguObject.Name)); ent.CommitChanges(); } } catch { this.WriteLog(context); } }