Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

foreach_loop_csvinput_powercli

$
0
0

hi Luc,

 

can you please suggest what is wrong in following .it used to work fine numerous times in past but for some reasons not today.

 

 

$vms_info=Import-Csv -Path "c:\users\user1\desktop\folder1\vmnames.csv"

$vms.count

 

foreach ($line in $vms_info)

{

 

$vma=get-vm $line.vmname

 

$vma|select name

 

}

 

iam getting folowing

 


Viewing all articles
Browse latest Browse all 49146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>