Syntax
Unlock-VM [-VM] <VirtualMachine[]> [-Confirm] [-RunAsync] [-Server <VIServer[]>] [-WhatIf] [<CommonParameters>]Related Commands
Get-SecurityInfoDetailed Description
This cmdlet unlocks the specified virtual machine. The virtual machine should be encrypted, otherwise, this cmdlet would fail. If the virtual machine is in CryptoLocked state, this cmdlet will make the virtual machine become connected state.Parameters
Return Type
VMware.VimAutomation.ViCore.Types.V1.Inventory.VirtualMachineNotes
This cmdlet only works with a encrypted virtual machine. If the virtual machine is encrypted and in connected state, it will make vCenter Server system sync keys to ESX; If the virtual machine is encrypted and locked, it will bring the virtual machine back to connected state. This cmdlet only works with vCenter Server and ESX of versions 6.7 or later.Examples
-------------------------- Example 1 --------------------------
Get-VM 'MyVM' | Unlock-VM
Unlocks the virtual machine named 'MyVM'.