PowerCLI

 View Only
Expand all | Collapse all

How to delete snapshot parallel on multiple VM by PowerCLI?

  • 1.  How to delete snapshot parallel on multiple VM by PowerCLI?

    Posted Aug 02, 2013 07:23 AM

    Greeting,

    I'm looking for a way to delete snapshots on multiple VM parallelly.

    I know delete snapshot by following script:

    get-vm -location xxx | remove-snapshot   

    The script above delete snapshots one VM by one VM. It's pretty time consuming if I have 1000+ VM, it's slow than manually delete snapshot.



  • 2.  RE: How to delete snapshot parallel on multiple VM by PowerCLI?
    Best Answer

    Posted Aug 02, 2013 07:26 AM

    You can try:

    get-vm -location xxx | remove-snapshot  -RunAsync



  • 3.  RE: How to delete snapshot parallel on multiple VM by PowerCLI?

    Posted Aug 05, 2013 01:13 PM

    Yes, that's what I need, thanks a lot. :smileywink: