Skip to content

On-premises BitLocker management using System Center Configuration Manager

Featured Replies

  • 3 weeks later...
  • Replies 104
  • Views 165.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Fantastic write up! When do you sleep honestly? It's very encouraging to see on prem, sccm cloud continue to developer further and further, especially when your livelihood depends on it!

  • huggans.sean
    huggans.sean

    You can also add a DWORD reg value in HKLM\SOFTWARE\Microsoft\MBAM called "NoStartUpDelay" and set it to 1 in the registry to disable the random delay to display the wizard.  You can just restart the 

  • Hi Niall, I would like to thank you for making such detailed documents and videos. But I have a question. I have looked at your videos and your documents and I am a bit confused.  Even in this documen

Posted Images

Hello,

When deploying self service portals, i got such error when running PS script.

Unable to export ConfigMgr SQL Server Identification Certificate: Unable to find tpye [X509Certificate].

But i got certificate etc.
 

Untitled.png

Edited by Eduards

  • Author

what command line did you use to install the portals ? if you specified -SqlInstanceName MSSQLSERVER then this error is expected...

if you are using the default instance then leave out that switch

I don't use -SQlInstanceName switch at all.

I open PS as admin that go to the root folder of the script and execute this:
test.png.f20c373473d272bb628d91dfef6fdbd0.png

In SQL i have Bitlockermanagement_CERT and also i have ConfigMgr cert.

Okey.
We could do that on thursday probably.

What is your e-mail?

On 4/8/2020 at 9:29 AM, Eduards said:

Hello,

When deploying self service portals, i got such error when running PS script.

Unable to export ConfigMgr SQL Server Identification Certificate: Unable to find tpye [X509Certificate].

But i got certificate etc.
 

Untitled.png

I was able to fix the problem by editing the installer script. Just added a session variable to avoid the proxy.

https://social.technet.microsoft.com/Forums/en-US/1ff999c3-f8d2-4dd2-bd17-df9fc79b8ec2/1910-setting-up-mbam-issues?forum=ConfigMgrCBGeneral

 

function Get-CertificateFromSqlServer
{
    param(
        [Parameter(Mandatory=$true)]
        [string]$sqlServer
    )

    $option = New-PSSessionOption -ProxyAccessType NoProxyServer ### added fix for WinRm error

    [array]$encodedCerts = Invoke-Command -ComputerName $sqlServer -ScriptBlock { 
        Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object { ($_.FriendlyName -eq "ConfigMgr SQL Server Identification Certificate") -and ($_.NotBefore -lt (Get-Date)) -and ($_.NotAfter -gt (Get-Date)) } | ForEach-Object {
            $bytes = $_.Export("cert"); 
            [Convert]::ToBase64String($bytes) 
        }
    } -SessionOption $option ### added fix for WinRm error

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.