:::: MENU ::::

Get the details of all files and folders using power-shell

Change the path variable for your requests-


$path = "C:\temp\"

Get-ChildItem -Path $path |Select-Object *|Export-Csv -Path "C:\temp\Folder_details.csv" -Force

 

if you want just the path and name of the files/folders –

 


$path = "C:\temp\"

Get-ChildItem |Select-Object name,fullname |Export-Csv -Path "C:\temp\Folder_details.csv" -Force

 


So, what do you think ?