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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

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

(6) ShareShare
ReportReport
Posted on by 14

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)
  • Suggested answer
    YUN ZHU Profile Picture
    100,278 Super User 2026 Season 1 on at
  • Verified answer
    OussamaSabbouh Profile Picture
    15,247 Super User 2026 Season 1 on at
    Hello,
     
    Yes, silent/unattended install is supported for BC on-prem using setup.exe /config + /quiet, but the config.xml must be generated from the same BC version via Setup → Save configuration, otherwise component IDs (like Server vs ServiceTier) may not match and the service instance won’t be created; the safest approach is to use Setup only to install the binaries (Server + Web Server Components), then create/configure the service instance and web instance explicitly with New-NAVServerInstance, Set-NAVServerConfiguration, and New-NAVWebServerInstance via the Administration Shell for full control; always run setup with /config, /quiet, and /log to review what component was skipped or rolled back.
     
    Regards,
    Oussama Sabbouh

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,892 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 927 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 566 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans