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 |
---|---|
|
The method was successful. |
|
One or more of the arguments are not valid. |
|
The volume is locked. |
|
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 |
|
See also