Use-SCSaveStateVM
Changes a virtual machine from the Running state to the Saved state.
Syntax
Use-SCSaveStateVM
[-VM] <VM>
[-RunAsynchronously]
[-JobVariable <String>]
[-PROTipID <Guid>]
[<CommonParameters>]
Description
The Use-SCSaveStateVM cmdlet changes a virtual machine from the Running state to the Saved state in System Center 2019 Virtual Machine Manager.
Examples
Example 1: Move a virtual machine from Running to Saved state
PS C:\> $VM01 = Get-SCVirtualmachine -Name "ConotosVM01"
PS C:\> Use-SCSaveStateVM -VM $VM01
The first command gets the virtual machine named testvm1, and then stores it in the $VM01 variable. The virtual machine is in the Running state.
The second command moves the virtual machine in $VM01 to the Saved state.
Parameters
-JobVariable
Specifies that job progress is tracked and stored in the variable named by this parameter.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
Specifies a virtual machine object.
Type: | VM |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |