Skip to content

Commit

Permalink
Added link for possible fix for #43
Browse files Browse the repository at this point in the history
  • Loading branch information
texhex committed Mar 13, 2018
1 parent 7ed9be1 commit ee104e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions BiosSledgehammer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function Test-Environment()
}

$Make = (Get-CimInstance Win32_ComputerSystem).Manufacturer

if ( (Test-String $Make -StartsWith "HP") -or (Test-String $Make -StartsWith "Hewlett") )
{
#All seems to be fine
Expand Down Expand Up @@ -1379,9 +1380,9 @@ function Invoke-BitLockerDecryption()
{
write-verbose "Checking volume $($volume.DeviceID)"

#There might be drives that are BitLocker encrypted but do not have a drive letter
#There might be drives that are BitLocker encrypted but do not have a drive letter.
#The system drive will always have a drive letter, so we can simply rule them out.
#This should be the fix for issue #43.
#This should be the fix for issue #43 - https://github.com/texhex/BiosSledgehammer/issues/43
if ( $volume.DriveLetter -ne $null )
{

Expand Down
5 changes: 3 additions & 2 deletions MPSXM.psm1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Michael's PowerShell eXtension Module
# Version 3.27.0
# Version 3.27.1
# https://github.com/texhex/MPSXM
#
# Copyright © 2010-2018 Michael 'Tex' Hex
Expand Down Expand Up @@ -609,7 +609,7 @@ Function Start-TranscriptIfSupported()

[uint32]$value = 1

#If the path does not exist, this line crashes with "A parameter can not be found that maches parameter FILE" which does not make any sense IMHO
#If the path does not exist, this line will crash with "A parameter can not be found that maches parameter FILE" which does not make any sense IMHO
try
{
$existing_files = Get-ChildItem -Path $Path -File -Filter $filter -Force -ErrorAction Stop
Expand Down Expand Up @@ -2514,6 +2514,7 @@ Function Test-IsHashtable()
[OutputType([bool])]
param (
[Parameter(Mandatory = $True, Position = 1)]
[AllowNull()] #We should be able to check if NULL if a hashtable (Else well get "Cannot bind argument to parameter 'InputObject' because it is null.")
$InputObject
)

Expand Down

0 comments on commit ee104e9

Please sign in to comment.