Search code examples
powershellpowercli

VMware Powercli Get-Snapshot


Using VMWare PowerCLI, how can I set a snapshot of a VM without getting the confirmation prompt?

Get-Snapshot -VM VM -Name 'snapshotname'

Solution

  • Get-Snapshot -VM VM -Name 'snapshotname' -confirm:$false