Advertisement
goezler

Get / Export all subfolders to a CSV File

Apr 28th, 2022
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get-ChildItem -Path "PATH_TO_FOLDER" -Recurse -Directory -Force -ErrorAction SilentlyContinue | Select-Object FullName  | convertto-csv | out-file "C:\Temp\EXPORT_DATA.csv"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement