For most of the scripts I have created I have done:
$vmlist="blah","blah1","blah2" <--- would like file located for example in c:\tmp\inputfile
foreach ($vm in $vmlist)
{
Get-VM $vm | Select-Object -Property Name,NumCpu |FT -AutoSize
I really would like to use an input file instead of listing it like I am above. I have tinkered with it but im just not getting it.
Thank you!!!