[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

reporting folder and files access and size

Posted on 2013-01-25
1
Medium Priority
?
262 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 41

Accepted Solution

by:
footech earned 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

873 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