in reply to Running Perl on Remote Windows Server

Unfortunately, you will need to have something on each remote server that runs locally on each one to collect the drive information that you're after. If you're not wanting to install and maintain Perl environments everywhere, you could use something like the pp utility from PAR::Packer to bundle your script into a stand alone executable that can be distributed and run on each system.

However, you still need to find a way to remotely execute something on each server and retrieve outputs. Unfortunately, Windows does not automatically have something like a telnet or SSH server installed and running. There are couple of alternatives to installing a telnet or SSH server on each remote system. If have PowerShell installed (its part of newer Windows versions and can be installed on some older versions), PowerShell has an ability to issue commands to on remote Windows systems. I haven't done that myself, so I can't provide pointers on how to use PowerShell to do that.

Another alternative is using PsExec from the SysInternals suite of tools available for free from Microsoft's web site.

There are probably lots of other ways to remotely run programs on Windows systems, but the suggestions above are a good starting point.

  • Comment on Re: Running Perl on Remote Windows Server

Replies are listed 'Best First'.
Re^2: Running Perl on Remote Windows Server
by coding_new (Sexton) on Oct 14, 2014 at 19:13 UTC

    I was worried about that, and seems to be what I thought. Windows does not really seem to offer an easy SSH or telnet solution. Would have preferred something like that as I have worked with SSH on AIX boxes in the past and they seem to be more straight forward. Oh well on-wards to see what I can come up with! Thanks