in reply to Windows Remote Desktop In Perl

Sorry Corion, I don't have permission to use WMI command line utility. I thought i was clear in my requirement. Ok, let me be clear- Instead of using Remote Desktop Connection, Is there a way to connect to a remote system using Dos Prompt (Command Line) and then accessing the files inside it? So that i can add those Dos commands inside my Perl program. Or else, is there a way to access remote computer through any of the Perl modules?? My ultimate aim is to do all the work command line. Thank You.

Replies are listed 'Best First'.
Re^2: Windows Remote Desktop In Perl
by Corion (Patriarch) on Jan 08, 2010 at 09:26 UTC

    There are many ways:

    • Use ssh. This requires you to install an SSH server on the target machines.
    • Use WMI. This requires you to have the appropriate permissions in your domain to launch processes remotely.
    • Have a periodic job on the target machines fetch and run a Perl program that sits at a well-known location. To run a program on a machine, you put the appropriate script into the well-known location.
    • If it's just to access files remotely, just have the machines export the relevant directories via SMB.
    • Use Win32::GUI to automate the Windows Terminal Server Client and send mouse clicks to it.

    I don't know Windows Server 2003, but I'm told that you can operate it through the text console, so I assume that the Microsoft documentation about Windows Server 2003 has information on how to do that. I would read the documentation to learn more about the environment.

      Thank You Corion for your precious reply. Its quite shocking to know there is no module in perl to connect to a remote computer directly as Remote Desktop does without any dependencies. Anyway, will try all the ways you suggested. Thank You once again.

        Its quite shocking to know there is no module in perl to connect to a remote computer directly as Remote Desktop does without any dependencies

        Why? It would be quite a useless thing to do. If someone wanted to do connections programmatically, it's because he wanted to issue commands or transfer files, neither of which Remote Desktop can do.

        Besides, it's quite easy to do anyway: system("start my.rdp");

        If you know of any other programming languages who have a facility to connect to a remote computer directly as Remote Desktop does without any dependencies, I'm interested of hearing about them. But it sounded to me as if Remote Desktop was not essential to your needs anyway, because you tried to avoid the transfer overhead that the RDC protocol incurs.