header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Managing BitLocker with PowerShell (setting passphrase for access to drive)
Last Post 24 Apr 2010 05:10 AM by Nemo.nW. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Nemo.nWUser is Offline
New Member
New Member
Posts:1
Avatar

--
24 Apr 2010 05:10 AM
    Hi guys,

    I'm new to Powershell and trying to use it  to manage BitLocker on a Windows 7 machine. I'd like to set a password for access to the data drive (not OS drive). Here's what my current "script" looks like:


    Get-WmiObject -Class Win32_EncryptableVolume -namespace "root\CIMV2\Security \MicrosoftVolumeEncryption"
    foreach($i in $drives)
    {
    switch($i.GetProtectionStatus().ProtectionStatus)
    {
    0 {
    $i.ProtectKeyWithNumericalPassword()
    $i.ProtectKeyWithPassphrase("MyPasswordHere")
    }
    1 {
    Write-Host "Drive is already encrypted!" }
     }
     }

    However, whenever I try to set a password this way I get an error:


    + $i.ProtectKeyWithPassphrase <<<< ("MyPasswordHere")
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WMIMethodException

    What's wrong?

    Thanks in advance
    Nemo.nW
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer