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 );
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.
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.
This method returns one of the following codes or another error code if it fails.
||The method was successful.
||BitLocker is not enabled on the volume. Add a key protector to enable BitLocker.
||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]