Automation

 View Only
Expand all | Collapse all

New-Snapshot -Memory $true issue

Adis Salcin

Adis SalcinJan 11, 2023 01:18 PMBest Answer

MindaugasS

MindaugasSJan 11, 2023 01:19 PM

  • 1.  New-Snapshot -Memory $true issue

    Posted Jan 11, 2023 01:15 PM

    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
     


  • 2.  RE: New-Snapshot -Memory $true issue
    Best Answer

    Posted Jan 11, 2023 01:18 PM

    Try with



  • 3.  RE: New-Snapshot -Memory $true issue

    Posted Jan 11, 2023 01:19 PM

    Thx. it works!!!