Using PowerShell
To configure IIS, you must run IISConfiguration.ps1 in PowerShell using parameters shown in the example scripts below. Run the appropriate script according to whether you want to use default or custom parameters.
-
Open PowerShell in Administration mode.
-
Replace the values in italics with your own values.
-
The script creates one application pool and one application.
Script with default parameters
powershell.exe -file "[path]\PostInstallation\IISConfiguration.ps1" -installationType "SEM_WebAPI" -username "MyDomain\DomainUser" -password "MyPassword123" -Verbose
Script with custom parameters
powershell.exe -file "[path]\PostInstallation\IISConfiguration.ps1" -installationType "SEM_WebAPI" -username "MyDomain\DomainUser" -password "MyPassword123" -webApiAppPool "MySEMWebAPIAppPool" -webApiAppName "Mywebapi7.0" -enable32BitAppOnWin64 True -Verbose
Parameter |
Description |
webApiAppPool |
Web API application pool name. The default value is "SEMWebAPIAppPool". |
webApiAppName |
Web API application name. The default value is "webapi7.0". |
username |
Username of the registered admin user for logging into the authentication server. This user must be in the System Administrators group in SAM. |
password |
Password of the registered admin user. |
enable32BitAppOnWin64 |
Set this to True to enable 32-bit on a 64-bit system. By default, it is set to False. |
Using IIS Manager
Create the application pool
-
Open Internet Information Services (IIS) Manager.
-
In the Connections pane, select Application Pools.
-
In the Actions pane, select Add Application Pool.
-
Enter a name for the pool. For example, SEMWebAPIAppPool.
-
For .NET CLR version, select No Managed Code.
-
For Managed Pipeline Mode, select Integrated.
-
Select OK to create the pool.
-
In the Actions pane > Edit Application Pool, select Advanced Settings.
-
In the Advanced Settings dialog, set the Start Mode to AlwaysRunning.
-
In the Process Model section, select Identity and then select the ellipsis button
.
-
In the Application Pool Identity dialog, select Custom account and then select Set.
-
In the Set Credentials dialog, enter the credentials of the registered admin user.
-
Keep selecting OK until you close the Advanced Settings dialog.
Create the application
-
In the Connections pane > Sites, right-click Default Web Site and select Add Application.
-
In the Alias field, enter a name for the application. For example, webapi7.0.
-
For Application Pool, select the pool that you previously created.
-
For Physical Path, browse to the gRpcClient folder. For example, C:Program Files (x86)\Smart\Engineering Manager\7.0\gRpcClient
-
For Pass-through authentication, select Connect as.
-
In the Connect As dialog, select Specific user and then select Set.
-
Enter the credentials of the registered admin user.
-
Keep selecting OK until you close the Add Application dialog.