find empty folders powershell code example
Example: powershell get empty folders
Get-ChildItem "C:\Scripts" -Recurse -Directory | Where-Object {!$_.GetFileSystemInfos().Count} | Select-Object FullName
Get-ChildItem "C:\Scripts" -Recurse -Directory | Where-Object {!$_.GetFileSystemInfos().Count} | Select-Object FullName