sush has asked for the wisdom of the Perl Monks concerning the following question:

Dear Gurus,

Problem: need to run multiple commands on a remote windows server. Is there any way to do this perl?

Available: The ip and the login info.

Constraints: The remote windows machines run only the base OS (2k3,2k8 win servers) and no additional client services are installed.
I need to run the commands on "fresh" instances of windows, These machines are EC2/GoGrid images spawned on demand, therefore I cannot afford the one time manual RDC login and setup of client services

Any help would be greatly appreciated.

Replies are listed 'Best First'.
Re: remote desktop from perl
by juster (Friar) on Feb 15, 2009 at 02:11 UTC

    The command line program PsExec seems like a good fit.

Re: remote desktop from perl
by Bloodnok (Vicar) on Feb 14, 2009 at 20:38 UTC
    Could you not create and drive an RDP session via Win32::OLE &/or Win32::GuiTest ?? Just a thought ...

    A user level that continues to overstate my experience :-))
Re: remote desktop from perl
by CountZero (Bishop) on Feb 14, 2009 at 21:08 UTC
    Would the remote servers accept a telnet-session? If so, have a look at Net::Telnet.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James