1 Reply Latest reply on Jan 8, 2019 4:26 AM by LucD

    Get list of VM's  from file

    scriptermad Enthusiast

      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 ?