Rediger

Del via


IsAutoUnlockEnabled method of the Win32_EncryptableVolume class

The IsAutoUnlockEnabled method of the Win32_EncryptableVolume class indicates whether the volume is automatically unlocked when it is mounted (for example, when removable memory devices are connected to the computer).

Syntax

uint32 IsAutoUnlockEnabled(
  [out] boolean IsAutoUnlockEnabled,
  [out] string  VolumeKeyProtectorID
);

Parameters

IsAutoUnlockEnabled [out]

Type: boolean

A Boolean value that is true if the external key used to automatically unlock the volume exists and has been stored in the currently running operating system volume, otherwise it is false.

VolumeKeyProtectorID [out]

Type: string

A unique string identifier that contains the associated encrypted volume key protector ID if IsAutoUnlockEnabled is true.

If IsAutoUnlockEnabled is false, VolumeKeyProtectorID is an empty string.

Return value

Type: uint32

This method returns one of the following codes or another error code if it fails.

Return code/value Description
S_OK
0 (0x0)
The method was successful.
FVE_E_NOT_ACTIVATED
2150694920 (0x80310008)
BitLocker is not enabled on the volume. Add a key protector to enable BitLocker.
FVE_E_NOT_DATA_VOLUME
2150694937 (0x80310019)
The method cannot be run for the currently running operating system volume.

 

Remarks

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Windows SDK. They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
Windows Vista Enterprise, Windows Vista Ultimate [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Namespace
Root\CIMV2\Security\MicrosoftVolumeEncryption
MOF
Win32_encryptablevolume.mof

See also

Win32_EncryptableVolume