3 Replies Latest reply on Nov 12, 2019 3:04 AM by LucD

    Remove vm objects from array

    vmwarelicense123 Novice

      How to I remove all $excluededVms from $vms??

       

      [System.Collections.ArrayList]$excluededVms = get-content E:\scripts\delSnapshots\ExceptionsList.txt

      [System.Collections.ArrayList]$vms = get-vm | Select-Object Name