If I understand your question, you basically would like to Telnet to the Windows box and run some scripts - which would execute on the remote Windows box. This is like the *nix paradigm

Unfortunately, Windows doesn't work like that. There is a Telnet service for Windows - not sure if it's installed by default or only available on Windows Server flavors, but that would require each user to have login credentials (you say they don't have remote log on access).

VNC or Windows equivalent - Terminal Services - is an option, but again, remote log on access is required for TS and VNC would require users knowing a shared password for direct remote console access.

Finally, there is psexec.exe from SysInternals. This also requires remote credentials.

The socket path you're going down seems reasonable, but without any authentication/authorization, couldn't anyone connect and force your scripts to run? That doesn't seem so secure.

Do you have any code done yet? Can you post something so we could be more help?


In reply to Re: Socket or not by VinsWorldcom
in thread Socket or not by patmcl

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.