Created
September 23, 2019 23:51
-
-
Save Curtmcgirt/de7fafec1255a50174fc6746449897ac to your computer and use it in GitHub Desktop.
posh v2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach($source in $sources) | |
{ | |
$sourcepath = $source.path.replace('\','/') | |
$count = ($allstats | ? sourcefilename -like "*$sourcepath*").count | |
$array += [pscustomobject]@{count = $count; path = $source.path} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment