PowerShell Snippets: Output list of folders and sub-folders

PowerShellThis post is part of the series on PowerShell Snippets.

The following PowerShell command will export a list of folders and sub-folders from the specified location (the first highlighted section is the starting folder and the second the output path for the CS file):

Get-ChildItem -Path \nas3publicmovies -Recurse -Directory -ErrorAction SilentlyContinue | Select-Object FullName | Export-CSV 

Continue Reading Ian Grieve’s Article on their blog

PowerShell Snippets: Output list of folders and sub-folders

This post is part of the series on PowerShell Snippets.

Blog Syndicated with Ian Grieve’s Permission

Author: Ian Grieve

Share This Post On

SCOTtish summit 2021

On February the 27th Scottish Summit 2021 will come to you as a virtual event. With over 250 sessions from all Microsoft technologies. You need to register for your FREE ticket and download the Scottish Summit App to see all the great sessions.