Get total size of all Shared Folders (Except Admin Shares) from a list of Servers?
Posted
by bEUY
on Stack Overflow
See other posts from Stack Overflow
or by bEUY
Published on 2010-04-07T02:48:05Z
Indexed on
2010/04/07
2:53 UTC
Read the original article
Hit count: 240
powershell
Hi there,
I'm looking to calculate the total size of all shared folders (except admin shares) on a number of different servers (consolidating all accessed files to a NAS box for easier backup / restore) but am having a bit of trouble finding a solution.
I'm certain this could be done in powershell but I just can't find the right information to get me going, I can currently spit out a list of all shares on the servers but am not sure where to go from here:
$servers =@( "server1", "server2")
foreach($server in $servers) { get-WmiObject Win32_Share -computerName $server -filter "Type = 0" }
© Stack Overflow or respective owner