VMware PowerCLI for Mirage

Set-MirageCvd

Synopsis

This cmdlet updates the CVD with the specified policy.

Syntax

Set-MirageCvd [-CVD] <CvdInfo[]> -Policy <PolicyInfo> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet updates the CVD with the specified policy.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
CVDCvdInfo[]Specify the CVD to update.truetrue (ByValue, ByPropertyName)
ConfirmSwitchParameterDisplays a confirmation prompt before making the change when this flag switches on.falsefalse
ForceSwitchParameterfalsefalse
PolicyPolicyInfoSpecify the new CVD policy.truefalse
WhatIfSwitchParameterDetails the changes this cmdlet will make when this flag switches on. No operation is performed.falsefalse

Return Type

CvdInfo

Notes

Since VMware Mirage 5.3.0.

Examples

-------------- Example 1: Set the policy of the Mirage CVD. --------------

Set-MirageCvd -CVD $cvd -Policy $policy

Sets the policy of Mirage CVD.





Id Name DeviceId PolicyImageId State OperationProgress UserName Archived
-- ---- -------- ------------- ----- ----------------- -------- --------
cvd-10001 device1 device-1 policy-2-1.0 Idle 100 domain\username False
cvd-10002 device2 device-2 policy-2-1.0 Idle domain\username False

-------------- Example 2: Set the CVD policy with pipeline. --------------

Get-MirageCvd | Set-MirageCvd -Policy $policy[0]

Sets the CVD policy with pipeline.





Id Name DeviceId PolicyImageId State OperationProgress UserName Archived
-- ---- -------- ------------- ----- ----------------- -------- --------
cvd-10001 device1 device-1 policy-2-1.0 Idle 100 domain\username False
cvd-10002 device2 device-2 policy-2-1.0 Idle 100 domain\username False


Copyright © VMware, Inc. All rights reserved.