Created
February 20, 2016 18:23
-
-
Save jwieder/98029786d45cb6dcb9a1 to your computer and use it in GitHub Desktop.
Powershell script to identify all empty folders in C partition. Replace C:\ with the path of your choice
This file contains hidden or 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
$a = Get-ChildItem C:\ -recurse | Where-Object {$_.PSIsContainer -eq $True} | |
$a | Where-Object {$_.GetFiles().Count -eq 0} | Select-Object FullName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment