web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Installing Business Central 27.3 (On-Prem) via PowerShell using configuration XML

(0) ShareShare
ReportReport
Posted on by

Hello,

I’m trying to create an automated install “package” (scripted install) for Microsoft Dynamics 365 Business Central On-Prem v27.3 using PowerShell, by running the BC installer with a configuration XML.

Questions

  1. Is it possible / supported to fully install BC 27.3 via PowerShell + config XML (silent/unattended)?
  2. Is there a guide (official or community) that shows the recommended approach?
  3. Has anyone done this for v27.x and can share a working script/config XML (sanitized), especially for installing the Service Tier?

Goal

  • Install at least:
    • Service Tier
    • Web Client
  • Connect to an existing SQL Server DB (or specify DB name)
  • Ensure the BC service instance is created and running after install

What I have so far

I generate the following XML in PowerShell and pass it to setup (WIX-based installer). The installer completes, but the Service Tier service instance is not created / not installed.

       $xmlContent = @"
<Configuration>
    <Component Id="ServiceTier" State="Local" ShowOptionNode="yes"/>
    <Component Id="WebClient" State="Local" ShowOptionNode="yes"/>
    <Component Id="Pagetest" State="Local" ShowOptionNode="yes"/>
    <Component Id="STOutlookIntegration" State="Local" ShowOptionNode="yes"/>
    <Component Id="SQLServerDatabase" State="Absent" ShowOptionNode="yes"/>
    <Component Id="SQLDemoDatabase" State="Absent" ShowOptionNode="yes"/>
    <Parameter Id="TargetPath" Value="[WIX_ProgramFilesFolder]\Microsoft Dynamics 365 Business Central\$($NewBCVersionNumber)"/>
    <Parameter Id="TargetPathX64" Value="[WIX_ProgramFilesX64Folder]\Microsoft Dynamics 365 Business Central\$($NewBCVersionNumber)"/>
    <Parameter Id="NavServiceServerName" Value="$($BCDatabaseServer)"/>
    <Parameter Id="NavServiceInstanceName" Value="$($NewBCServiceInstanceName)"/>
    <Parameter Id="NavServiceAccount" Value=""/>
    <Parameter Id="NavServiceAccountPassword" IsHidden="yes" Value=""/>
    <Parameter Id="NavServiceClientServicesPort" Value="7046"/>
    <Parameter Id="ManagementServicesPort" Value="7045"/>
    <Parameter Id="WebServiceServerPort" Value="7047"/>
    <Parameter Id="WebServiceServerEnabled" Value="true"/>
    <Parameter Id="DataServiceServerPort" Value="7048"/>
    <Parameter Id="DataServiceServerEnabled" Value="true"/>
    <Parameter Id="DeveloperServicesPort" Value="7049"/>
    <Parameter Id="NavFirewallOption" Value="true"/>
    <Parameter Id="CredentialTypeOption" Value="NavUserPassword"/>
    <Parameter Id="DnsIdentity" Value=""/>
    <Parameter Id="SQLServer" Value="$($BCDatabaseServer)"/>
    <Parameter Id="SQLInstanceName" Value=""/>
    <Parameter Id="SQLReplaceDb" Value="FAILINSTALLATION"/>
    <Parameter Id="SQLDatabaseName" Value="$($BCDatabaseName)"/>
    <Parameter Id="WebServerPort" Value="8080"/>
    <Parameter Id="WebClientRunDemo" Value="false"/>
    <Parameter Id="WebClientDependencyBehavior" Value="skip"/>
    <Parameter Id="PublicWebBaseUrl" Value=""/>
</Configuration>
"@

Environment

  • BC version: 27.3 On-Prem
  • OS: [Windows Server version]
  • SQL Server: [SQL version]
  • Domain/Workgroup: [Domain]
  • Install account: [Local admin]
  • Install media: DVD ISO

How I run setup

  • I’m running setup via PowerShell (silent), using the config XML.
  • (If relevant) I can share the exact command line I use and the full install log path.

What I’m looking for

  • A known-good example of:
    • the correct setup.exe command line for unattended install with config.xml
    • required parameters for ServiceTier to actually install
Any tips on where to look in logs to see why the service tier step is being skipped/rolled back.

 

If anyone has a working config.xml / script for BC 27.x, I’d greatly appreciate it (sanitized is fine).

Thank you.

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,296 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,174 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,034 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans