Automation

 View Only
  • 1.  get all vms but with exception from import list

    Posted Nov 25, 2021 12:32 PM

    Hi,

    I´m struggling with a simple question here.

    I want to get all VM ´s but with an exception of some VM´s from a List which comes from a simple txt file.

    If I do it like here, the output is twice or more, it depands how many objects are in the txt file. So the loop is wrong, or is there are smarter way? I guess so... Thanks

     



  • 2.  RE: get all vms but with exception from import list
    Best Answer

    Posted Nov 25, 2021 01:18 PM

    You could do something like this

     

     

     



  • 3.  RE: get all vms but with exception from import list

    Posted Nov 25, 2021 01:30 PM

    Thank you, thant works for me,

     

    how would you do the exception thing with tag´s on VM´s

    Exclude VM´s where  Tag -like "ignore*" in category "exception"



  • 4.  RE: get all vms but with exception from import list
    Best Answer

    Posted Nov 25, 2021 01:51 PM

    Something like this