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

Get-Snapshot -VM VM -Name 'snapshotname'
有帮助吗?

解决方案

Get-Snapshot -VM VM -Name 'snapshotname' -confirm:$false
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top