text_combined: le dahut pdpdwbmlapostenet sorry forgot informations error 1789 lookupaccountname trust relationship workstation primary domain failed said doesnt always happen sometimes logon runs successfully acls correctly set use lookupaccountname try command line tryexcept statement correctly run import win32security wsec wseclookupaccountnamedomainusers working uconda 2 wseclookupaccountnamefakeserverdomainusers traceback recent call last file line 1 pywintypeserror 5 lookupaccountname access denied trywseclookupaccountnamefakeserverdomainusers except print oo oo thanks advance le dahut wrote hello im using code mypdc mypdc dusers domnamedomainusers obj cmylogfilelog try domainusers_sid wseclookupaccountnamemypdc dusers0 info wsecdacl_security_information sd wsecgetfilesecurityobj info acl sdgetsecuritydescriptordacl acladdaccessallowedaceexwsecacl_revision_ds wsecobject_inherit_ace wffile_all_access domainusers_sid maj du security descriptor sdsetsecuritydescriptordacl1 acl 0 application sur lobjet wsecsetfilesecurityobj info sd except exception e loggingerroracls error sobj dusers e loggingdebugerror stracebackprint_exc logon time occur wseclookupaccountname fails except statement called exception thrown well get file logonexelog read traceback finally tracebackprint_exc returns none produce traceback instead really except _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 wed 06 aug 2008 090145 0100 pythonwin32 error 1789 logon except really called