Previous page

Next page

Locate page in Contents

Exporting and Importing Farm Settings via Command Line

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 https://www.parallels.com/products/ras/resources/ 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.

Installing Parallels RAS PowerShell

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:

  1. Run the Parallels RAS installer.
  2. Select Custom and then select the Parallels RAS PowerShell component.
  3. Complete the wizard and install Parallels RAS PowerShell.

Using 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 https://www.parallels.com/products/ras/resources/ 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-ExportSettings "C:\Backup\RAS-backup.dat2"

To import Farm settings:

Invoke-ImportSettings "C:\Backup\RAS-backup.dat2"