Re: [python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.') - GOAL - ACCESS to windows event log from remote host

2021-09-17 Thread Ruggero Paolo Basile
# loop #for user in group.associators(wmi_result_class="Win32_UserAccount"): #print(" [+]", user.Caption) except wmi.x_wmi: print("Your Username and Password of "+getfqdn(ip)+" are wrong.") Ruggero Paolo Basile Cellulare

Re: [python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')

2021-09-16 Thread Ruggero Paolo Basile
OK well , i dint try the experiment becouse i wont modify the other host, only i have to connect to a remote host in the local lan but i cant find any parameter to connect to an host with win32security.LogonUser(). Gretings Ruggero Paolo Basile Cellulare: 3403216393 Mail

Re: [python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')

2021-09-16 Thread Ruggero Paolo Basile
. the only question now is how i have to do? before call hand = win32evtlog.OpenEventLog (server, logtype) maybe i have to create an authentication contex? i'am not skilled in that. Ruggero Paolo Basile Cellulare: 3403216393 Mail: ruggeropaolo.bas...@ora-0.it<mailto:gabriele.salt...@or

Re: [python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')

2021-09-16 Thread Ruggero Paolo Basile
rr)) if __name__ == "__main__": try: print ("start") except getopt.GetoptError as err: print(str(err)) Ruggero Paolo Basile Cellulare: 3403216393 Mail: ruggeropaolo.bas...@ora-0.it<mailto:gabriele.salt...@ora-0.it> Privacy Policy<https://ora-0.

[python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')

2021-09-15 Thread Ruggero Paolo Basile
Good morning i'am try to connect to remote host and get the eventlog from windows , but in the module i can't find a value for authentication. Have you some news? this is my error "pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')" Thanks. Best Regards Ruggero Pa