DisableKeyProtectors method of the Win32_EncryptableVolume class
The DisableKeyProtectors method of the Win32_EncryptableVolume class disables or suspends all key protectors associated with this volume.
Syntax
uint32 DisableKeyProtectors( [in] uint32 DisableCount );
Parameters
- DisableCount [in]
-
Type: uint32
Integer that specifies the number of key protectors to disable.
Return value
Type: uint32
This method returns one of the following codes or another error code if it fails.
| Return code/value | Description |
|---|---|
|
The method was successful. |
|
The volume is locked. |
Security Considerations
This method exposes the volume's encryption key in the clear on the hard disk, turning off any volume protection. We recommend against having any password or encryption key in plaintext.
Remarks
New key protectors can be added even when key protectors are disabled or suspended. These key protectors will remain disabled unless EnableKeyProtectors is called.
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
|
Minimum supported client | Windows Vista Enterprise, Windows Vista Ultimate [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Namespace |
\\.\root\CIMV2\Security\MicrosoftVolumeEncryption |
|
MOF |
|
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012