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
215 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 29

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

751 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