Greetings,
I am trying to run a script that checks for the presence or absence of a particular file on a remote Windows 2000 server. When I test the script as a domain user that has a local account on the remote server, I can test for the file just fine. However, the script needs to be run by a service account that does not have direct access to the machine. However, for the script to run, it needs to run under the domain service account user. Is there a way within the script to "login" to the remote Windows server as a user with local access to the machine for the purposes of checking for a file? I'm trying to find the simplest solution to our little problem that I can. Also, the remote machine does not (currently) have Perl installed but the machine where the script would reside does. Am I just spitting into a windstorm or is there something I might try?

update: I have tried using NT's rsh but we are also going through a firewall and that won't work.


"Ex libris un peut de tout"

In reply to Remote Win32 User by nimdokk

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.