|
Hi All,
I am using the Win32::AdminMisc module to build
some inventory information within our network. I am trying
the GetDriveSpace function to get the size of
remote hard drives. The documentation of the module says that
if a UNC is used instead of local drive then a
backslash should be used at the end. Here is what I am using
$drive = "\\\\$server\\C\$\\";
{($FixedDrives{$drive}->{Size},
$FixedDrives{$drive}->{Free}) =
Win32::AdminMisc::GetDriveSpace($drive);}
And on running this I get undefined value. Any idea
whats wrong with the code or has anyone encountered this
before. I got the module from Jenda Krynick's ppm
repository.
Also is there any way to find out the number of
fixed drives on a remote machine?
Thanks in advance,
Sumit.
|
- RE: getting remote hard drive space Sumit
- RE: getting remote hard drive space Rob Dowell
- Re: getting remote hard drive space Patrick J. LoPresti
- RE: getting remote hard drive space Tim Johnson
- RE: getting remote hard drive space John Giordano
- RE: getting remote hard drive space lgbarr
