Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 195209

using an input file

$
0
0

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!!!


Viewing all articles
Browse latest Browse all 195209

Trending Articles



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