2010-08-12 6 views

답변

-1

편집 : 더 나은 답변을 찾았습니다.

실제로 좋은 방법으로 이것을 수행하는 데 사용할 수있는 Win32_EncryptableVolume이라는 WMI 클래스가 있습니다. 유용 할 수도있는 Decrypt 메서드가 있습니다. 여기

윈도우 7에서 아래

올드 대답은, Vista에서 스크립트 manage-bde.wsf 보면, 도구 manage-bde.exe 봐.

그들이 원하는대로 할 수 있다고 가정하면 .Net 앱의 관련 매개 변수를 사용하여 호출 할 수 있어야합니다.

+0

. WMI 클래스에 이러한 메소드가 있는지 확인합니다. –

+0

@Andrew : 그렇습니다. BitLocker가 그렇게 많이 필요한지 정확히 알지 못합니다. 그것에 대해 생각하고있을지라도, 아마도 여러분이 필요로하는'DisableAutoUnlock'이 있습니까? –

+0

PowerShell이 ​​Win32_ 클래스를 인식하지 못하는 것 같습니다. –

0

Win32EncryptableVolume WMI 공급자에는 볼륨에서 BitLocker 보호를 일시 중단하는 DisableKeyProtectors 메서드가 있습니다.

0

명령 행 :

manage-bde -protectors -disable <drive letter>: 
manage-bde -protectors -enable <drive letter>: 

파워 쉘 (WMI)

$bitlocker = Get-WmiObject -Namespace root\cimv2\Security\MicrosoftVolumeEncryption -Class Win32_EncryptableVolume 
$bitlocker.DisableKeyProtectors() 
$bitlocker.EnableKeyProtectors() 

C#을

난 단지 중지, 암호를 해독 할 필요가 없습니다
using System.Management // add reference 
// ... 

// disable Bitlocker 
ManagementObject classInstance = new ManagementObject(@"root\cimv2\Security\MicrosoftVolumeEncryption", "Win32_EncryptableVolume.DriveLetter='C:'", null); 
ManagementBaseObject outParams = classInstance.InvokeMethod("DisableKeyProtectors", null, null); 

// enable Bitlocker 
outParams = classInstance.InvokeMethod("EnableKeyProtectors", null, null); 
관련 문제