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

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.windows
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
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, [email protected]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
smime.p7s (application/pkcs7-signature, 3.3 KB) - not displayed
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.