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.
uint32 DisableKeyProtectors( [in, optional] uint32 DisableCount );
DisableCount [in, optional]
Integer that specifies the number of reboots for which the key protectors will be disabled. This parameter is only available on OS volumes.
This method returns one of the following codes or another error code if it fails.
||The method was successful.
||The volume is locked.
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.
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).
|Minimum supported client
||Windows 8.1 [desktop apps only]
|Minimum supported server
||Windows Server 2012 R2 [desktop apps only]