Link to home
Start Free TrialLog in
Avatar of sara2000
sara2000

asked on

space usage on few servers

I am trying to find the space usage on each server. is there any easy way to get this?
All the server are windows2008.
Avatar of cwstad2
cwstad2
Flag of United Kingdom of Great Britain and Northern Ireland image

Definitely windirstat for this. Great tool the visual display makes it really easy to resolve space issues.
Avatar of sara2000
sara2000

ASKER

I want to get disk info for 30 servrs at once. I am not sure windirstat does this?
get this  

http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

Install pstools on your computer/server

du is  Directory Disk Usage Report

Create a script  

@ECHO Off
c:\pstools\psservice \\server1 -u server1\administrator -p secret du (commands) >>c:\diskusage.txt
server2
etc

Exit

Du v1.4 - report directory disk usage
Copyright (C) 2005-2011 Mark Russinovich
Sysinternals - www.sysinternals.com

usage: du [-c] [-l <levels> | -n | -v] [-u] [-q] <directory>
   -c     Print output as CSV.
   -l     Specify subdirectory depth of information (default is all levels).
   -n     Do not recurse.
   -q     Quiet (no banner).
   -u     Count each instance of a hardlinked file.
   -v     Show size (in KB) of intermediate directories.


You can add each server in the script pipe the output to a file and then have a report

schedule it in task manager and run it on a regular basis

If you can email via batch then you can also email the report to you.
I use febooti command line smtp email works great

Need help with script let me know.
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
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