Skip to main content
Version: 4.2.5

Create the site with PowerShell script

Installing the Administrator site using the PowerShell script consists of the following steps:

  1. Creating an installation configuration file.
  2. Running the installation script.

Creating an installation configuration file

The installation is configured using an XML file. An example file is located in iCore Administrator\Version\WebInstallConfig.xml, (typically located in “C:\Program Files (x86)"). An annotated XML Schema describing the configuration files can be found in iCore Administrator\Version\WebInstallConfig.xsd.

  1. Create a copy of the configuration file and open it for editing.

  2. Among the example configurations, identify the one that best corresponds to your requirements and modify its attributes. For more information, refer to the installation configuration file.

  3. (Optional): Modify the attributes in the configuration file. For example, set Authentication type to Windows/Forms/OpenIdConnect, or set a Binding Port to a desired port number. For more information, refer to the installation configuration file.

  4. Save and close the file.

Running the installation script

note

Before you run the installation script, create the configuration file as described above.

  1. Start Windows PowerShell (64-bit version), with administrative privileges (right-click and select "Run as administrator").

    note
    • You will receive an error message if you attempt to run the installation script in any other version of PowerShell.
    • Make sure to use the Windows Powershell console and not another host (for example PowerShell ISE) as it may not support all functionality.
  2. For each Administrator site or application (that you want to install on the local machine), do the following:

    • Run the PowerShell script iCore Administrator\Version\Install-iCoreWebAdmin.ps1 with the following parameters:
      • SiteName – the name of the site configured in the configuration file.
      • ApplicationName (only applicable if installing a web application as opposed to a web site) – the name of the application to install, as configured in the configuration file.
      • ConfigurationFile – the path to the configuration file created in the previous step.
    & .\Install-iCoreWebAdmin.ps1 –SiteName "Default Web Site" –ApplicationName "iCore Web Admin" –ConfigurationFile "WebInstallConfig.xml"
    & .\Install-iCoreWebAdmin.ps1 –SiteName "iCoreWebAdmin" –ConfigurationFile "WebInstallConfig.xml"

See Also

Creating the Administrator site (examples)