Ruggero Paolo Basile wrote:


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.')"


To do that operation, your username has to have permission on that remote machine.  Are you using a domain?  Are you logged in as a domain administrator?


This article talks about it, but since Windows security is a vast, dark, confusing, twisted mess, I'm not sure you'll be able to make it work.


https://docs.microsoft.com/en-us/archive/blogs/janelewis/giving-non-administrators-permission-to-read-event-logs-windows-2003-and-windows-2008


If you bring up the Event Viewer application ("eventvwr"), under Action, there's a "Connect to Another Computer" option.  Does that work for you?

--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to