VMware Cloud Community
MindaugasS
Contributor
Contributor
Jump to solution

New-Snapshot -Memory $true issue

Hi,

I am trying to make new snapshot with memory state, but getting an error. what I am doing wrong...?

New-Snapshot -VM $vm -Name $snap_name -Memory $true;
[Error] New-Snapshot: A positional parameter cannot be found that accepts argument 'True'.
 
I followed: 
 
VM: Ubuntu 22
 
powercli version: 
Name Version
---- -------
VMware.Vim 7.0.3.19601056
VMware.VimAutomation.Cis.Core 12.6.0.19601368
VMware.VimAutomation.Common 12.7.0.20067789
VMware.VimAutomation.Core 12.7.0.20091293
VMware.VimAutomation.Sdk 12.7.0.20067606
 
 
PowerShell 7.3.1
 
0 Kudos
1 Solution

Accepted Solutions
salcinad
Enthusiast
Enthusiast
Jump to solution

Try with

New-Snapshot -VM $vm -Name $snap_name -Memory:$true

View solution in original post

2 Replies
salcinad
Enthusiast
Enthusiast
Jump to solution

Try with

New-Snapshot -VM $vm -Name $snap_name -Memory:$true
MindaugasS
Contributor
Contributor
Jump to solution

Thx. it works!!!

0 Kudos