Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

Get list of VM's from file

$
0
0

Hi

 

I am trying to stop some VM's in vCD using a txt file.

 

I am doing the following

 

1. Connecting to vCD

2. $vmlist = get-contect c:\vms,txt

3. $vms = get-civm $vmlist  

 

But the last command gives an error "CIVM with name 'correct vm name read from file' was not found using the specified filter

 

Any idea how to run script to shut down VM's in vCD ?


Viewing all articles
Browse latest Browse all 13334

Latest Images

Trending Articles



Latest Images

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