Link to home
Start Free TrialLog in
Avatar of 2LL
2LL

asked on

Script/tool to check network share disk space

Hi all, I am looking for the script or tool to check multiple network share drives (these share drive physicaly located on SAN and NAS). Thanks.
Avatar of Narender Gakka
Narender Gakka
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of 2LL
2LL

ASKER

Vikshi,
These script showed available disk, is there script or tool that query on multiple servers with report show: Share Drive Name, Total disk space, and Available disk space? Then save it to somewhere. Thank you very much for your help.
Avatar of 2LL

ASKER

Can anyone help please?
Assuming that you know the ip's of the network shares
for /L %%x in (101 1 120) DO (
net use x: /DELETE
net use x: \\10.10.10.%%x
x:
dir >> c:\info.txt
)

the above script is in assumption that your share ips are in order eg 10.10.10.1  10.10.10.2 etc

if they are not replace the for loop with below

for %%x in (10.10.10.1 10.11.112.3 ......) DO (
Avatar of 2LL

ASKER

Vikas Madhusudana, thank you for your response. dir command show to many detail of files/folders under the drive that you map, but does not show total space of that driver. Is there any other way?
ASKER CERTIFIED SOLUTION
Avatar of vikas_madhusudana
vikas_madhusudana
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 2LL

ASKER

This is not exactly what I want, but it is good for reference.
can you please add some more details of what exactly you want.

~Vikas