{"id":10151,"date":"2006-06-23T19:58:00","date_gmt":"2006-06-23T19:58:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2006\/06\/23\/windows-powershell-one-liner-list-all-the-subdirectories-in-the-current-directory\/"},"modified":"2019-02-18T13:21:37","modified_gmt":"2019-02-18T20:21:37","slug":"windows-powershell-one-liner-list-all-the-subdirectories-in-the-current-directory","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/windows-powershell-one-liner-list-all-the-subdirectories-in-the-current-directory\/","title":{"rendered":"Windows PowerShell One-Liner:  List all the subdirectories in the current directory"},"content":{"rendered":"<p><font face=\"Courier New\">dir | where {$_.PsIsContainer}<\/font><\/p>\n<p>Alternatively you could:<\/p>\n<p><font face=\"Courier New\">dir |where {$_.mode -match &#8220;d&#8221;}<\/font><\/p>\n<p>Jeffrey Snover<br \/>Windows PowerShell Architect<\/p>\n","protected":false},"excerpt":{"rendered":"<p>dir | where {$_.PsIsContainer} Alternatively you could: dir |where {$_.mode -match &#8220;d&#8221;} Jeffrey SnoverWindows PowerShell Architect<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>dir | where {$_.PsIsContainer} Alternatively you could: dir |where {$_.mode -match &#8220;d&#8221;} Jeffrey SnoverWindows PowerShell Architect<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/10151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=10151"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/10151\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=10151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=10151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=10151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}