Automation

 View Only
Expand all | Collapse all

get-vm script problem (exclude a few vms)

  • 1.  get-vm script problem (exclude a few vms)

    Posted Mar 10, 2021 05:11 PM

    I have a simple script that runs snapshots on a host.

    Get-VM | New-Snapshot.....

     how do I exclude a VM "example-vm" from this list?

     

     



  • 2.  RE: get-vm script problem (exclude a few vms)

    Posted Mar 10, 2021 05:24 PM

    You can use a Where-clause