Win32_EncryptableVolume 類別的 SetIdentificationField 方法

Win32_EncryptableVolume類別的SetIdentificationField方法會在磁片區的中繼資料中設定指定的識別碼字串。

語法

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

參數

IdentificationField [in, optional]

類型: 字串

字串,指定指派給磁片區的識別欄位。 如果選擇性字串不存在,則會使用登錄集值。 如果字串存在且沒有空白,則會使用指定的值。 IdentificationField參數不區分大小寫。

傳回值

類型: uint32

此方法會在失敗時傳回下列其中一個代碼或另一個錯誤碼。

傳回碼/值 描述
S_OK
0 (0x0)
此方法成功。
FVE_E_LOCKED_VOLUME
2150694912 (0x80310000)
BitLocker 磁片磁碟機加密會鎖定此磁片磁碟機。 您必須從主控台解除鎖定此磁片區。
FVE_E_NOT_ACTI加值稅ED
2150694920 (0x80310008)
磁碟區上未啟用 BitLocker。 新增金鑰保護裝置以啟用 BitLocker。

 

規格需求

需求
最低支援的用戶端
Windows 7 企業版,Windows 7 旗艦版 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 R2 [僅限傳統型應用程式]
命名空間
Root\CIMV2\Security\MicrosoftVolumeEncryption
MOF
Win32_encryptablevolume.mof

另請參閱

Win32_EncryptableVolume