Skip to content

Instantly share code, notes, and snippets.

@AspenForester
Created July 24, 2019 21:10
Show Gist options
  • Save AspenForester/07545d0b47317de4e4fc6f2363392605 to your computer and use it in GitHub Desktop.
Save AspenForester/07545d0b47317de4e4fc6f2363392605 to your computer and use it in GitHub Desktop.
Iron Scripter 2019 - 2
$Measurement = get-childitem -Path C:\temp -Recurse -File | Measure-Object -Property Length -sum -Average
[pscustomobject]@{
Count = $Measurement.Count
Average = $Measurement.Average
Sum = $Measurement.Sum
Date = Get-Date
ComputerName = $env:Computername
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment