Bitlocker portals issue - unable to get machine's domain name

Parag Morye 21 Reputation points


I am trying to create BitLocker portals using MBAMWebSiteInstaller.ps1 but it is giving an error as “Set-MachineUserOnSql: Unable to get machine's domain name” and “Install-MBAMWebSites: Failure setting machine account privileges on SQL”. Below snap for ref.

The environment is SCCM 2103 version with E-HTTP mode. The database is on a remote cluster SQL server. SCCM server computer account and user account both have sysadmin permission on SQL server.

Checked the below link and tried to edit the MBAMWebSiteInstaller.ps1 but it didn’t work.

Seems to be something that needs to edit in MBAMWebSiteInstaller.ps1 but unable to figure it out.

@Parag Morye

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 41,691 Reputation points Microsoft Vendor

    Hi, @Parag Morye
    Thank you for posting in Microsoft Q&A forum.

    May we know what's the command-line exactly did you run? And how did you edit your command-line following that link?
    And the error message suggest you to re-run the script after specifying the NetBIOS domain name in the DomainName parameter, did you try to add the parameter and re-run?

    Here is the explanation about -DomainName:
    -DomainName Specify the NetBIOS domain name of the server with the help desk or self-service web portal role. Only necessary if the NetBIOS domain name doesn't match the DNS domain name. This configuration is also known as a disjointed domain namespace. For example, -DomainName fabrikham where the DNS domain name is

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

1 additional answer

Sort by: Most helpful
  1. Parag Morye 21 Reputation points

    Sorry for the delay in reply.

    The issue got resolved by using -DomainName parameter in the command line.

    Thank you for your reply and suggestion.

    0 comments No comments