RE: Can't read remote system event log

From: dharani babu (dharanibabu_at_discussions.microsoft.com)
Date: 10/14/04


Date: Thu, 14 Oct 2004 04:45:25 -0700

Could you specify the target OS ?

"Paul Roberts" wrote:

> My app is having trouble reading the system and security logs from some
> servers across a network. There are no errors being reported, it's just
> that the enumeration comes back with no records. I've had the user run
> WBEMTEST, and it gets records without problems.
>
> My app works fine with application logs over the network, and will get
> system and security logs when running locally on the server(s) in
> question. I'm unable to duplicate the same behaviour on my in-house test
> PC running the same OS (W2k server) and service pack (SP4).
>
> I'd really appreciate it if someone could give me advice on how to
> troubleshoot this. I don't have access to the client's site so
> everything has to be done over the phone and via new releases of my app.
>
> Here's a quick summary of what I'm doing:
>
> 1. Call CoInitializeSecurity (details below)
> 2. Make sure I've got SeSecurity privilege.
> 3. Create the WBEMLocator and call connect server
> 4. Call CoSetProxyBlanket (details below) on the resulting proxy
> 5. Call ExecQuery with "SELECT * FROM Win32_NTLogEvent WHERE
> Logfile='Security'"
> 6. Call CoSetProxyBlanket on the resulting enumerator proxy
>
> OK, so here's my call to CoInitializeSecurity:
> CoInitializeSecurity(NULL,-1, NULL, NULL, RPC_C_AUTHN_LEVEL_DEFAULT,
> RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL)
>
> And for the call to CoSetProxyBlanket I'm filling out a COAUTHIDENTITY then:
>
> ::CoSetProxyBlanket(pProxy, RPC_C_AUTHN_DEFAULT, RPC_C_AUTHZ_DEFAULT,
> NULL, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, &coauthID,
> EOAC_NONE)
>
> Any ideas?
>



Relevant Pages

  • Re: Dcidag errors
    ... Port blockage between servers ... Other sorts of networking issues (lack of connectivity between the points ... These errors are typically a result of a network connectivity issue of some ... > replicating this nc. ...
    (microsoft.public.windows.server.active_directory)
  • Re: I need Job Blobb
    ... > Windows and Network administratation. ... > In a job I would like to administrate servers, ... > Title: ISP Network Administrator ... > o Building, installation, configuration and tuning ...
    (microsoft.public.cert.exam.mcse)
  • Re: I need Job Blobb
    ... > Windows and Network administratation. ... > In a job I would like to administrate servers, ... > Title: ISP Network Administrator ... > o Building, installation, configuration and tuning ...
    (microsoft.public.cert.exam.mcse)
  • Event Viewer Networking Connectivity
    ... What we need is a very solid working network. ... Here's what lead up to this scenario of BDC replacement. ... On the corporate side I can see our servers. ... Registration of the DNS record ...
    (microsoft.public.windows.server.networking)
  • Help with initial small org AD setup convention when using DMZ network
    ... firewall which then connects the public IP dmz network to a private IP ... domain name for such subnets based on the nearest airport code, ... Yahoo to manage my externally-visible DNS names on the acme.com domain. ... and servers that use this domain, ...
    (microsoft.public.win2000.active_directory)