Forum Discussion
powershellhdp
Jun 05, 2022Copper Contributor
How to check size of a folder using powershell?
Hi guys I am new in the world of powershell and trying to incorporate the job I do. How can I check size of a folder using powershell before copying it?
RiyazMSHelp
Jun 05, 2022Copper Contributor
Get-ChildItem -Path C:\temp\ -Recurse | Measure-Object -Sum Length | Select-Object @{name='size(mb)';expression={$_.Sum/1mb}}