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: ruggeropaolo.bas...@ora-0.it<mailto:gabriele.salt...@ora-0.it> Privacy Policy<https://ora-0.it/privacy-policy/> Company Policy<https://ora-0.it/wp-content/uploads/2020/08/politica_aziendale_it.pdf> [cid:image001.png@01D789E4.08355260] ________________________________ Da: Mark Hammond <mhamm...@skippinet.com.au> Inviato: giovedì 16 settembre 2021 11:30:34 A: Ruggero Paolo Basile; python-win32@python.org Oggetto: Re: [python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.') On 16/09/2021 7:17 pm, Ruggero Paolo Basile wrote: > OK , let's explain the case > > > My goal is to read the event log of the remote windows machine. I have > experienced the *wmi library,* the wmi problem is that I have to create > parsers, I have not found any code. On the remote machine I have no > authentication problems as I connect to the local network. If you have a username and password that works on the *server*, you may be able to use win32security.LogonUser(). You still haven't answered: > Tim also suggested a specific experiment you should try - did you try > it? What happened? It's likely you will be prompted for a username and password here. If you have a username/password that works, win32security.LogonUser() is likely to work with the same username/password. Mark
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32