Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to Create Templates on a Server for Reuse in Remote Desktop

Turn an already configured server into a template and reuse it in future Remote Desktop deployments to automate the setup.

Building a Remote Desktop environment from scratch is a repetitive process if you do it often.

With templates, you automate it: you configure a server to your liking once, turn it into a template, and reuse it in future Remote Desktop deployments without repeating the entire installation.

πŸ‘ What you get

A template created from an already configured server, ready to be reused in Remote Desktop deployments and save you from repeated configuration.

Before you begin

  • Access the administration panel at admin.plenit.com with permissions on the environment.

  • Have an already deployed server with a Windows image (for example, Windows Server 2019 or 2016) and with the software and configuration you want to include in the template. If you need to create it, follow the Quick Start for Servers.

  • Start from a normal server, without Remote Desktop provisioned.

🚧 Server requirements before creating the template

For the template to work in deployments, the source server must meet the following requirements:

  • Do not remove the local administrator user: the platform uses it to interact with the server automatically (a random password is generated in each deployment).

  • Keep the network interface on DHCP: images come this way by default. A static IP can leave the deployment without network connectivity.

  • Do not install the "Remote Desktop Services" role: it is not necessary, because the deployment installs the software needed for connections. If it is installed, remove it from Server Manager β†’ Remove Roles and Features.

  • Do not use ports 80 or 443: Remote Desktop software uses them during deployment. If you need an IIS, change its port (for example 8080 or 4443) and then publish it via port forwarding from the Servers subscription firewall.

Step 1. Prepare the server: remove the monitoring agent

The images include a monitoring agent that feeds the dashboard charts and alerts. To create a clean template, that agent must be removed from the source server before converting it.

Ask Partner Success to remove the monitoring agent from the server you are going to use as a template. It is a quick task and leaves the server ready for the rest of the process.

πŸ“˜ Why this step is necessary

The agent is designed for a server in operation, not for a template that will be cloned. Removing it before creating the image prevents it from being carried over into all deployments created from that template.

Step 2. Run Sysprep on the server

With the server prepared, run a Sysprep so that it has a unique SID, thus avoiding security problems caused by repeated SIDs between servers.

πŸ“˜ Take a snapshot first

Sysprep can only be run eight times on the same system. Before launching it, shut down the server and create a snapshot of the machine: if something goes wrong or you want to rebuild the template later, restore the snapshot and that limit is reset.

Ideally, work with the RDP connection open to run the commands and keep the console visible so you can see when the server shuts down.

Connect to the server via RDP, open a console (CMD or PowerShell) as administrator, and run:

Running Sysprep in the server console

❗️ Shut down the server from the panel as soon as the system kicks you out of the console

When Sysprep kicks the administrator out of the console, initiate the shutdown yourself from the panel, in the server details page.

If you let it shut down by itself, the platform interprets it as a crash and boots it back up, which invalidates Sysprep. If that happens, restore the snapshot and repeat the process.

Server shutdown from the panel after Sysprep

Step 3. Convert the server into a template

With Sysprep done and the server shut down, go to the Servers subscription β†’ Servers and locate the server (it will be shut down). Open its (...) menu and click Edit to open its details page.

Selecting the shut-down server and accessing Edit

In the server details page, click Convert.

Convert button in the server details page

The images subsection opens: give the template a name and mark the service in which you want it to be available. Since it is for Remote Desktop, check Remote Desktop. Click Continue to create it.

Template name and target service

The platform creates the template and notifies you that it is being created and that it has been created successfully.

πŸ“˜ Also from the Images subsection

You can reach template creation in two ways: from the server in Servers (the one in this guide) or from the Images subsection of the subscription. Both do the same thing.

Step 4. Reuse the template in a Remote Desktop deployment

When creating a new Remote Desktop subscription, in the wizard step (Server), choose another configuration for the server. Go to Image β†’ My images (with a small scroll) and select the template you created.

Selecting the template in the Remote Desktop deployment

When you save, the platform launches the Remote Desktop deployment with the settings from that template, with much of the process already automated.

Conclusion

Templates turn a tedious setup into something reusable: you prepare the server once, turn it into a template, and apply it in each Remote Desktop deployment.

The two things that matter most for the result are meeting the source server requirements (admin user, DHCP, no Remote Desktop role, ports 80/443 free) and controlling the shutdown after Sysprep from the panel. With the template created, every new environment starts from your base configuration instead of from scratch.

Last updated

Was this helpful?