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
206 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 27

Accepted Solution

by:
serialband earned 500 total points
Comment Utility
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
Comment Utility
thank you so much.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
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). …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

19 Experts available now in Live!

Get 1:1 Help Now