Skip to content

Commit

Permalink
Fixed typo in BitLocker decryption (issue #22)
Browse files Browse the repository at this point in the history
  • Loading branch information
texhex committed Oct 29, 2017
1 parent ebf05b1 commit 84f5249
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions BiosSledgehammer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ param(


#Script version
$scriptversion="3.2.5"
$scriptversion="3.2.6"

#This script requires PowerShell 4.0 or higher
#requires -version 4.0
Expand Down Expand Up @@ -1390,6 +1390,10 @@ function Invoke-BitLockerDecryption()

write-host "Starting decryption (this might take some time)..."
$ignored=Disable-BitLocker -MountPoint $systemdrive

#wait three seconds to avoid that we check the status before the decryption has started
Start-Sleep -Seconds 3


#Now wait for the decryption to complete
Do
Expand All @@ -1405,7 +1409,7 @@ function Invoke-BitLockerDecryption()
#During the process, the status is "DecryptionInProgress"
if ( $volumestatus -ne "FullyDecrypted" )
{
write-host " Decryption runing, $($Percentage)% remaining ($volumestatus). Waiting 15 seconds..."
write-host " Decryption in progress, $($Percentage)% remaining ($volumestatus). Waiting 15 seconds..."
Start-Sleep -Seconds 15
}
else
Expand Down

0 comments on commit 84f5249

Please sign in to comment.