Importing and exporting Farm settings from the command line
Last updated
Last updated
Feedback
Leave a feedback© 2024 Parallels International GmbH. All rights reserved.
Parallels RAS PowerShell allows you to perform the majority of Parallels RAS administration tasks from the command line.
This section contains information about using PowerShell to export and import Farm settings. To learn more about Parallels RAS PowerShell, please visit and download (or view online) the Parallels RAS PowerShell Guide.
One of the uses of exporting and importing Farm settings is running automated tests. Specific configurations can be created, exported, and then imported for specific test scenarios. You can also use this functionality with Windows task scheduler for regular backups of Farm settings.
RAS PowerShell is installed by default when you run the default Parallels RAS installation. If you haven't installed it (or to install it on a different computer), do the following:
Run the Parallels RAS installer.
Select Custom and then select the Parallels RAS PowerShell component.
Complete the wizard and install Parallels RAS PowerShell.
The complete up-to-date information about Parallels RAS PowerShell can be found in the Parallels RAS PowerShell Guide. The guide includes the Getting Started chapter to help you quickly get started with Parallels RAS PowerShell, as well as the complete reference and code samples. Please visit to view or download the guide.
Use the instructions below to export and import Parallels RAS Farm settings.
To import the Parallels RAS PowerShell module, open the PowerShell console and execute the following command:
Import-Module PSAdmin
Create a Parallels RAS session (use the name or IP address of the server where you have Parallels RAS installed):
New-RASSession -Server "server.company.dom"
To export Farm settings, execute the following command (substitute the path and filename of the backup file with your own):
Invoke-RASExportSettings "C:\Backup\RAS-backup.dat2"
To import Farm settings:
Invoke-RASImportSettings "C:\Backup\RAS-backup.dat2"