Leser: 2
|< 1 2 >| | 13 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use Win32::DriveInfo;
use Win32::NetAdmin qw(GetServerDisks);
$|=1;
my @ServerList = qw(server0001 server0002 server0003 server0004);
foreach $server ( @ServerList ) {
GetServerDisks("\\\\$server", \@disks);
print "Server: $server\n";
foreach $disk ( @disks ) {
chop $disk;
next if ($disk =~ /A|B/);
@DriveInfo =
Win32::DriveInfo::DriveSpace("\\\\$server\\$disk\$");
$total = int $DriveInfo[5] / (1024 * 1024);
$free = int $DriveInfo[6] / (1024 * 1024);
print "Disk $disk\n";
print "Total space: $total MBytes\n";
print "Free space: $free MBytes\n";
}
print "\n";
}
net use \\server\ipc$ /user:übergeordnetedomain\userid passwort
|< 1 2 >| | 13 Einträge, 2 Seiten |