UpgradeVolume method of the Win32_EncryptableVolume class

The UpgradeVolume method of the Win32_EncryptableVolume class upgrades a volume from the Windows Vista format to the Windows 7 format. This is a nonreversible operation.

Syntax

uint32 UpgradeVolume();

Parameters

This method has no parameters.

Return value

Type: uint32

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

If the volume is already unlocked and no other errors occur, this method returns zero.

Return code/value Description
S_OK
0 (0x0)
The method was successful.
E_INVALIDARG
214794287 (0xCCD802F)
One or more of the arguments are not valid.
FVE_E_LOCKED_VOLUME
2150694912 (0x80310000)
The volume is locked.
FVE_E_NOT_ACTIVATED
2150694920 (0x80310008)
BitLocker is not enabled on the volume. Add a key protector to enable BitLocker.

 

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