in reply to Running Perl on Remote Windows Server

printf "$gbfree GB free from total of $gbtotal GB\n"; printf "total GB used $gbused\n"; printf "$perfree%% free on drive $drive\n";

Seems to be a monitoring task ;-)

I don't know your environment but perhaps it is an option for you to set up a Linux box running Nagios?

If so you could simply use SNMP and Nagios for gathering information about Windows drives etc. instead of bothering with remote execution, PAR::Packer a.s.o.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

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

    Thanks Karl, unfortunately Linux box is not an option at this time in this environment

      As I remember (it has been a few years), Nagios can talk to probes on Windows machines just fine. Whether a Nagios monitoring host will live under Windows is a question that an appeal to the Doc may answer. At worst you could run Nagios on a Linux image inside a Windows Virtual machine (or use Cygwin).

      ----
      I Go Back to Sleep, Now.

      OGB