via power shell using gwmi object


via power shell using gwmi object folders , size

support@mytechnet.me

hi,

get-childitem | measure-object -sum length | select-object count, sum

more details:

http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/25/getting-directory-sizes-in-powershell.aspx

windows powershell tip of week

http://technet.microsoft.com/en-us/library/ff730945.aspx

regards,

yan li


yan li

technet community support



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group