Re: pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')

Ruggero Paolo Basile <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <[email protected]>

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:  [email protected]<mailto:[email protected]>
Privacy Policy<https://ora-0.it/privacy-policy/>     Company Policy<https://ora-0.it/wp-content/uploads/2020/08/politica_aziendale_it.pdf>
[cid:[email protected]]


________________________________
Da: Mark Hammond <[email protected]>
Inviato: giovedì 16 settembre 2021 11:30:34
A: Ruggero Paolo Basile; [email protected]
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
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.