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

Re: copy vm name from txt file place into another txt file

$
0
0

As ssbkang said, csv's might be more helpful, but this is with txt files

 

Makes sure the vms in C:\stage\machines.txt are each on their on line

 

$vms=get-content C:\stage\machines.txt | get-vm $_

$datastore=get-datastore

$vm | ? {$datastore.id -contains $_.datastoreidlist} |Out-file C:\stage\machines2.txt


Viewing all articles
Browse latest Browse all 219257

Trending Articles



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