Solved

reporting folder and files access and size

Posted on 2013-01-25
1
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Learn about cloud computing and its benefits for small business owners.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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