Calculate Folder size of all users downloads folder on our server

Welcome Forums General PowerShell Q&A Calculate Folder size of all users downloads folder on our server

Viewing 2 reply threads
  • Author
    Posts
    • #226128
      Participant
      Topics: 1
      Replies: 1
      Points: -6
      Rank: Member

      Hello,

      I want to make an overview of all the download folders on users homedrives. I have created this script but somehow something is going wrong in the calculation of the sizes. My custom object is filled with the right folders but the calculation all show the same number, it must be the size of one of the homedrives. What am i doing wrong?

      Mapnaam is foldername in dutch, grootte is size.

       

      [/crayon]
      • This topic was modified 4 months, 2 weeks ago by Arjen150235.
    • #226203
      Participant
      Topics: 6
      Replies: 17
      Points: 132
      Helping Hand
      Rank: Participant

      Here’s how I would do it…

       

      • This reply was modified 4 months, 2 weeks ago by mitchvh05.
    • #226281
      Participant
      Topics: 1
      Replies: 1
      Points: -6
      Rank: Member

      Thanks a lot! This did exactly what i wanted to achieve. Im fairly new to powershell (really enjoying it though!) so some basic things give me struggles some times 🙂

Viewing 2 reply threads
  • The topic ‘Calculate Folder size of all users downloads folder on our server’ is closed to new replies.