From a903695c70224d63d7995d65108bb820f628b2a6 Mon Sep 17 00:00:00 2001 From: FrelVick Date: Fri, 15 Feb 2019 09:56:45 +0100 Subject: [PATCH] Update to resolve issue #47 https://github.com/PowerShell/xBitlocker/issues/47 --- Misc/xBitlockerCommon.psm1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Misc/xBitlockerCommon.psm1 b/Misc/xBitlockerCommon.psm1 index 814b156..655a8a1 100644 --- a/Misc/xBitlockerCommon.psm1 +++ b/Misc/xBitlockerCommon.psm1 @@ -792,6 +792,15 @@ function Assert-HasPrereqsForBitlocker $blAdminToolsFeature = Get-WindowsFeature RSAT-Feature-Tools-BitLocker $blAdminToolsRemoteFeature = Get-WindowsFeature RSAT-Feature-Tools-BitLocker-RemoteAdminTool + if ( + ((Get-CimInstance -ClassName Win32_OperatingSystem).ProductType -eq 1) -and + (get-command enable-bitlocker -ErrorAction SilentlyContinue) + ) + { + # Client OS with BitLocker detected + return + } + if ($blFeature.InstallState -ne 'Installed') { $hasAllPreReqs = $false