Share This Post

PowerShell

PowerShell One-liner: Getting the List of Subdirectories

PowerShell One-liner: Getting the List of Subdirectories

The following short and simple PowerShell script retrieves the list of subdirectories in the current directory:

dir | where {$_.PsIsContainer}


Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

IT/Dev Connections

Share This Post

Leave a Reply