Just a thought, have you tried accessing the machines that your failing on using the event viewer whilst logged on as whatever userid the script runs on?

The reason I ask is I once saw a similar problem with a script accessing stuff on a remote server. The script ran fine under the development account, but when run as a scheduled task on the production machine it would get so far and then hang and have to be killed.

When we went to the actual server (stuck away under lock and key in a remote server room) and switched on the screen, having worked out which combination of switches connected the single screen and keyboard to the right one of 10 or 12 boxes in the room (closet), we discovered that there was a "Invalid logon, try again" dialog sitting on the screen.

The one server (of a couple of hundred) where it kept hanging had a non-standard set of domain permissions.


Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!

In reply to Re: more Win32::EventLog oddities by BrowserUk
in thread more Win32::EventLog oddities by Reverend Phil

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.