Solved

reporting folder and files access and size

Posted on 2013-01-25
1
254 Views
Last Modified: 2013-02-15
I have windows 2003 server, i need to clean up servers. My users are really bad with putting files everywhere. Is there a tool to tell how big folders and sub-folders  are and when last time access?

thanks
0
Comment
Question by:officertango
1 Comment
 
LVL 39

Accepted Solution

by:
footech earned 500 total points
ID: 38821675
TreeSize Professional can show you that info.
http://www.jam-software.com/treesize/
The free version will show you the sizes, but not the last access date.  I'm sure there's other utilities out there as well.
You could also script something.  For instance, here's an example using PowerShell which shows the size of each folder individually (not including subfolders, though the script could be modified to do so).  You would just need to modify what the $startFolder variable is referencing to check some other folder location.
$startFolder = "K:\some-folder"
$out = @()
$custom = New-Object PSObject
$folderInfo = (Get-Item $startfolder)
$Properties = @{
  Name = $folderInfo.FullName
  LastAccessTime = $folderInfo.LastAccessTime
  Size = "{0:N2}" -f ((($folderInfo | Measure-Object -property length -sum -ea SilentlyContinue ).sum) / 1KB)+" KB"
}
$custom = New-Object PSObject -property $Properties
$out += $custom
ForEach ($folder in (gci $startfolder -recurse | Where { ($_.PSIsContainer) }))
{
  $Properties = @{
    Name = $folder.FullName
    LastAccessTime = $folder.LastAccessTime
    Size = "{0:N2}" -f (((gci $folder.FullName | Measure-Object -property length -sum -ea SilentlyContinue ).sum) / 1KB)+ " KB"
  }
  $custom = New-Object PSObject -property $Properties
  $out += $custom
}
$out | Format-Table -auto

Open in new window

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Learn about cloud computing and its benefits for small business owners.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now