Administrators of Parallels RAS occasionally need to update templates to address system change requirements. In this article, we’re going to show just how easy it is to use PowerShell to update RAS templates and use sample template scripts.
The main steps for using a script to update your template are:
- Update your template by placing it into maintenance mode.
- Exit maintenance mode when your updates are complete (don’t recreate it on exit).
- Run the script at a scheduled time to update the guest VMs automatically.
The template script follows these steps:
- Finds any user sessions in the RDSH or VDI pool and logs them off.
- Disables the RDSH Group. (RDSH servers are unregistered and removed from the RDSH Group. In case of VDI, VMs are shut down.)
- Enters maintenance mode.
- Exits maintenance mode with updated guest VMs switch.
- Recreates Guest VMs.
- Enables RDSH Group.
- Parallels RAS autoscaling adds RDSH servers back into the group and registers them in the Parallels RAS Console.
- Parallels RAS Farm.
- RDSH or VDI pools with template.
- Parallels RAS PowerShell module installed.
- Get the RDSH Template script
- Get the VDI Template script
Follow this blog post for detailed instructions and guidance. This code is provided as a community effort without support, use at your own risk.
These scripts are under GNU General Public License v2.0.