Hello LucD,
Thanks for your reply. It does create a .csv file but for a txt file that has this:
Server2
Server3
Server4
the resulting output .csv file contains this:
"PSPath","PSParentPath","PSChildName","PSDrive","PSProvider","ReadCount","Length"
"C:\scripts\vms.txt","C:\scripts","vms.txt","C","Microsoft.PowerShell.Core\FileSystem","1","7"
"C:\scripts\vms.txt","C:\scripts","vms.txt","C","Microsoft.PowerShell.Core\FileSystem","2","7"
"C:\scripts\vms.txt","C:\scripts","vms.txt","C","Microsoft.PowerShell.Core\FileSystem","3","7"
Would there be some type of setting I need to change to make it just bring the text from the txt file?
Best