You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/deployment/on-premises-design/ms-windows/_index.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Before starting this how-to, make sure you have the following prerequisites:
45
45
46
46
* Suitable database servers are MariaDB, MS SQL Server, MySQL, Oracle Database and PostgreSQL. See [System Requirements](/refguide/system-requirements/#databases) for more information
47
47
48
-
* A local or domain user with the *“log on as a service”* local security policy set
48
+
* A local user, domain user or group managed service account (gMSA) with the *“log on as a service”* local security policy set
49
49
50
50
## Installing the Mendix Service Console {#service-console}
51
51
@@ -88,32 +88,36 @@ To deploy a Mendix app using the Mendix Service Console, follow these steps:
88
88
***Display name** – the description of the app which is visible as a tooltip for the app in the left bar of the Mendix Service Console or as a column in the list of Windows services
89
89
***Description** – a description of the application that will be visible in the Mendix Service Console
90
90
***Startup type** – select whether you want the app to be started automatically when the server starts, started with a delay, started manually, or disabled altogether
91
-
***User name** and **Password** – the app will always run under the user account given here, and the service will be installed with this user account configured (for more information, see [Prerequisites](#Prerequisites))
91
+
***User name** and **Password** – the app will run under the user account given here, and the service will be installed with this user account configured (for more information, see [Prerequisites](#Prerequisites))
92
+
***Install service with LocalSystem account** – optionally, select the checkbox if you want to use a gMSA account for a Mendix app instead of the user account given under **User name** and **Password**.
93
+
94
+
4. Click **Next >**.
92
95
93
-
4. Click **Next >**.
96
+
5. Optionally, if you selected the **Install service with LocalSystem account** checkbox while creating the app, install the service once your app is created. The service will be installed with the LocalSystem account. (You can verify the service account type in the Services app of Windows.) Execute the following command in the administrator command prompt to change the account type to your gMSA: `sc.exe config MyServiceName obj= "YOURDOMAIN\MyGMSAAccount$"`.
97
+
Configure folder access permissions for gMSA account on the directory selected in the **Preferences** setting. For more information, refer to the [Installing the Mendix Service Console](/developerportal/deploy/deploy-mendix-on-microsoft-windows/#service-console) section above.
6. Now select the **MDA** file that was [created in Mendix Studio Pro](/refguide/create-deployment-package-dialog/) and contains your application logic. After the installation of your MDA file, you will see which Mendix server (Mendix Runtime) version is needed.
105
+
7. Now select the **MDA** file that was [created in Mendix Studio Pro](/refguide/create-deployment-package-dialog/) and contains your application logic. After the installation of your MDA file, you will see which Mendix server (Mendix Runtime) version is needed.
102
106
103
-
7. Configure the **Database Settings**:
107
+
8. Configure the **Database Settings**:
104
108
105
109
***Type** – the database server type
106
110
***Host** – the IP address or host name of the database server
107
111
***Name** – the database name
108
112
***User name** and **Password** – the database user name and password
9. On the **Common Configuration** screen, keep the default settings. These settings should only be changed if this is needed for your application setup.
118
+
10. On the **Common Configuration** screen, keep the default settings. These settings should only be changed if this is needed for your application setup.
115
119
116
-
10. Click **Finish** and start the application.
120
+
11. Click **Finish** and start the application.
117
121
118
122
## Configuring the Microsoft Internet Information Services Server{#configure-msiis}
Copy file name to clipboardExpand all lines: content/en/docs/deployment/on-premises-design/ms-windows/automate-mendix-deployment-on-microsoft-windows.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,48 @@ $appName = 'Name of Mendix app'
180
180
Install-MxService $appName
181
181
```
182
182
183
+
### Sample Script - Set App Runtime Settings
184
+
185
+
The following script example demonstrates how to set runtime settings for your app. It applies custom runtime configuration settings to your application using a hashtable of key-value pairs.
The following script example demonstrates how to set an application constant for your app. It updates a specific constant value in your Mendix app configuration.
201
+
202
+
```text
203
+
$appName = '{Name of your app}'
204
+
$constants = @{
205
+
'constantName' = 'constantValue'
206
+
'constantName2' = 'constantValue2'
207
+
}
208
+
209
+
# Set application constant
210
+
Set-MxAppConstants $appName -Constants $constants
211
+
```
212
+
213
+
### Sample Script - Get Server Id
214
+
215
+
The `Start-MxApp` cmdlet automatically retrieves the Server ID (License ID) when starting a Mendix app. You can use this unique identifier for license tracking and application monitoring. The following script example demonstrates the process required to retrieve Server Id.
If you encounter any issues while automating Mendix deployment on Windows using cmdlets, use the following troubleshooting tips to help you solve them.
0 commit comments