---
title: "Distributed installation script for the Sitecore XM Scaled topology"
slug: "distributed-installation-script-for-the-sitecore-xm-scaled-topology"
abstract: ""
---
# Distributed installation script for the Sitecore XM Scaled topology

To simplify your scaled installation on multiple servers, you can use a PowerShell script to install the Sitecore XM Scaled topology. For more information, see Architecture overview in Sitecore documentation.

> [!note]
> If you use this script to install the Sitecore XM Scaled topology, each server role must be installed on a separate computer and there must be no previous Sitecore installation on any of these computers.

## Distributed installation script prerequisites

To prepare the servers, you must perform the following steps on each server:

1. Enable PowerShell Remoting.

    For more information about PowerShell Remoting, see the section *[Run SIF Remotely](https://doc.sitecore.com/xp/en/developers/105/guides/installation-guide-for-the-xm-scaled-topology/run-sif-remotely.html "Run SIF remotely")*. 

2. Install all the prerequisites.

    For more information about the prerequisites, see the section *[Install the Prerequisites](https://doc.sitecore.com/xp/en/developers/105/guides/installation-guide-for-the-xm-scaled-topology/install-the-prerequisites.html "Install the prerequisites")*. 

3. Create the `c:\resourcefiles` folder on every machine that will be assigned a Sitecore server role or will run Solr.
4. Configure the Web Server Role (IIS).

    ![Select role services](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/guides/installation-guide-for-the-xm-scaled-topology/images/IIS.png)

## Run the distributed installation script for the XM Scaled topology

To edit and run the XM topology installation script:

1. Create a folder called `c:\resourcefiles`.
2. On the [Sitecore Experience Platform download site](https://developers.sitecore.com/downloads), download the Packages for XM Scaled topology. This file is listed in the Download options for On Premises deployment section. Extract to `c:\resourcefiles` folder all `scwdp.zip` files and all configuration files.
3. Save your Sitecore license file in the `c:\resourcefiles` folder as `license.xml`.
4. In the `c:\resourcefiles` folder, edit the `XM1-Distributed.ps1` file script and update each line with the appropriate settings for your environment.
5. In a PowerShell command line, navigate to the `c:\resourcefiles` folder and run the following command:

    ```text
    .\XM1-Distributed.ps1
    ```

After you have edited and run the installation script, you must complete the post-installation steps described in the chapter *[Post-installation steps](https://doc.sitecore.com/xp/en/developers/105/guides/installation-guide-for-the-xm-scaled-topology/post-installation-steps.html "Post-installation steps")*.