How does your vmnames,txt file look ?
To write the result to a CSV file you can append
| Export-Csv C:\report.csv -NoTypeInformation -UseCulture
to the end.
How does your vmnames,txt file look ?
To write the result to a CSV file you can append
| Export-Csv C:\report.csv -NoTypeInformation -UseCulture
to the end.