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
212 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Windows 7s template 4 74
sp_configure 'external scripts enabled', 1; 7 80
BATCH to EXE Converter 2 39
GPO to push shortcuts to computers in the domain 5 17
This is about my first experience with programming Arduino.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

828 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