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

Hi Monks,

I have a need to implement remote diskspace gathering using perl. I tried using the Win32::GetDriveSpace module but it seems that it only supports drives on the local machine and its mapped network drives.

What I'm trying to do is to run a single perl script on my local machine to gather data (total space, used, free, drivename) from other machines in the same network. I have already done this for unix machines but I don't see a way for Win32 machines. My local machine is a Windows XP btw. Somebody mentioned that I should look into WMI for this. Is this the only way or are there other ways to do this? Thanks in advance!
  • Comment on Any way to get drivespace info of Win32 machine remotely?

Replies are listed 'Best First'.
Re: Any way to get drivespace info of Win32 machine remotely?
by Ninthwave (Chaplain) on Sep 27, 2004 at 23:13 UTC
    Try this or this or use the Roth's on web page as a reference here or even this
    "No matter where you go, there you are." BB
      Thanks for the pointers Ninthwave. I'll look into the links that you sent.
Re: Any way to get drivespace info of Win32 machine remotely?
by Discipulus (Canon) on Sep 28, 2004 at 07:57 UTC
    Hi auyong

    I have put this script on code catacomb: 394483 it works without WMI. WMI is better but there is some problem mixing 2k and 2k3 machines: it seems that the M stands for managemet but without backward compatibility...

    hope this help

    Lorenzo
      Thanks Discipulus! I'll check it out.
Re: Any way to get drivespace info of Win32 machine remotely?
by jbodoni (Monk) on Sep 29, 2004 at 01:31 UTC
    Don't forget SNMP...