Last active
October 14, 2021 14:36
-
-
Save pkutaj/f22e97523245c86fff744afc98b7dd32 to your computer and use it in GitHub Desktop.
File Count per Folder in Powershell (not recursive)
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
Get-ChildItem -Recurse -Directory | | |
Select-Object Name, @{ | |
Name="FileCount"; | |
Expression={(Get-ChildItem $_ -File | Measure-Object).Count } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment