Solved

reporting folder and files access and size

Posted on 2013-01-25
1
255 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Screen Mirroring 7 53
inactive users 13 70
Memory Leak in Windows 2012, Non-Paged pool 8.5GB 25 94
Forcibly removing a 2003 server from the Domain 4 34
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

20 Experts available now in Live!

Get 1:1 Help Now