How to calculate folder size using a PowerShell script on multiple servers in multiple directories?

Hello,, I am in need of a PowerShell script to calulate the size of folders or libraries located in various
directories on different servers. The size would be calculated from a path similar to
: "\\{servername}\{drive}\{Directoryname}\{library}\stacks"
There are 12 servers with at least 6 libraries needing size calculated then the sum of all libraries.
All this to be automated to a spreadsheet.

Thanks for your help.
Regards, SColleen
SColleenAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Felix LevenConnect With a Mentor Senior System and DatabaseadministratorCommented:
0
 
SColleenAuthor Commented:
Best solution was very clearly understood. Thank you both for your assistance. I had been meaning to reply earlier, sorry for the delay.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.