Link to home
Start Free TrialLog in
Avatar of tbaseflug
tbaseflugFlag for United States of America

asked on

Check Harddrive space and total drive listings for all servers

I have a list of servers (actual servers on our network) that I am returning from a SQL stored procedure query via a datareader - what I would like to do is to cycle through of the of records returened and check and display the harddrive space and drives on each of the servers - Is this even possible and if so, how?
Avatar of RonaldBiemans
RonaldBiemans

maybe look ,

here

http://www.freevbcode.com/ShowCode.Asp?ID=5588

or you could use WMI
ASKER CERTIFIED SOLUTION
Avatar of RonaldBiemans
RonaldBiemans

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 tbaseflug

ASKER

RonaldBiemans -

How would I displaythe results to a web page?
Also, how would I use the above to reference a harddrive of a remote server?
'create your string from the variables
Dim strOutput as string = disk & " has " & space & " kb Free"
'write it to the page
response.write(strOutput)
in the interim before finding out how to  reference the drives on a remote server with code you could map them as local drives and set the permissions for ASPNET. It is not the best solution but certainly the easiest!