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.
ProgrammingMicrosoft Legacy OS

Avatar of undefined
Last Comment
vikas_madhusudana
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
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
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of 2LL
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
Microsoft Legacy OS
Microsoft Legacy OS

The Microsoft Legacy Operating System topic includes legacy versions of Microsoft operating systems prior to Windows 2000: All versions of MS-DOS and other versions developed for specific manufacturers and Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions, and Windows Mobile.

55K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo