The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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).


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


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/valueDescription
0 (0x0)

The method was successful.

2150694920 (0x80310008)

BitLocker is not enabled on the volume. Add a key protector to enable BitLocker.

2150694937 (0x80310019)

The method cannot be run for the currently running operating system volume.



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).


Minimum supported client

Windows Vista Enterprise, Windows Vista Ultimate [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]





See also




Community Additions

© 2015 Microsoft