Export (0) Print
Expand All
Expand Minimize

SetIdentificationField method of the Win32_EncryptableVolume class

The SetIdentificationField method of the Win32_EncryptableVolume class sets the specified identifier string in the volume's metadata.

Syntax


uint32 SetIdentificationField(
  [in, optional]  string IdentificationField
);

Parameters

IdentificationField [in, optional]

Type: string

A string that specifies the identification field that is assigned to the volume. If the optional string is not present, the registry set values are used. If the string is present and not empty, the specified value is used. The IdentificationField parameter is not case-sensitive.

Return value

Type: uint32

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

Return code/valueDescription
S_OK
0 (0x0)

The method was successful.

FVE_E_LOCKED_VOLUME
2150694912 (0x80310000)

This drive is locked by BitLocker Drive Encryption. You must unlock this volume from Control Panel.

FVE_E_NOT_ACTIVATED
2150694920 (0x80310008)

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

 

Requirements

Minimum supported client

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

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Namespace

\\.\root\CIMV2\Security\MicrosoftVolumeEncryption

MOF

Win32_encryptablevolume.mof

See also

Win32_EncryptableVolume

 

 

Community Additions

ADD
Show:
© 2014 Microsoft