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.
LVL 1
sara2000Asked:
Who is Participating?
 
SubsunConnect With a Mentor Commented:
I can provide you a PowerShell script which report the disk usage.. Y can refer the following question for example.. The script in question gives the report in HTML format and if you need the report in different format then let me know I can modify it for you..

http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28012052.html
0
 
cwstad2Commented:
0
 
Thomas GrassiSystems AdministratorCommented:
I use this works great

http://windirstat.info/
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Joseph DalyCommented:
Definitely windirstat for this. Great tool the visual display makes it really easy to resolve space issues.
0
 
sara2000Author Commented:
I want to get disk info for 30 servrs at once. I am not sure windirstat does this?
0
 
Thomas GrassiSystems AdministratorCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.