Solved

Is there a way to export the size of each local user profile My Documents and Desktop folder sizes for a list of computers?

Posted on 2014-04-08
2
220 Views
Last Modified: 2014-08-19
Hello Experts,

We are trying obtain the folder sizes for every local user profile My documents and Desktop folders for every computer in an Excel spreadsheet. Is there a way to accomplish this via Powershell?
0
Comment
Question by:RCOtech
[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
2 Comments
 
LVL 30

Accepted Solution

by:
serialband earned 500 total points
ID: 39986907
You could try du (disk usage) for windows.  http://technet.microsoft.com/en-us/sysinternals/bb896651.aspx

There's also windirstat https://windirstat.info/

There's a powershell script from  http://langexplr.blogspot.com/2007/03/implementation-of-du-s-in-powershell.html
function directory-summary($dir=".") { 
  get-childitem $dir | 
    % { $f = $_ ; 
        get-childitem -r $_.FullName | 
           measure-object -property length -sum | 
             select @{Name="Name";Expression={$f}},Sum}

Open in new window

0
 

Author Comment

by:RCOtech
ID: 40270895
thank you so much.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Suggested Courses

617 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