# Importing and exporting Farm settings from the 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-RASExportSettings "C:\Backup\RAS-backup.dat2"`

To import Farm settings:

`Invoke-RASImportSettings "C:\Backup\RAS-backup.dat2"`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-admin-guide/v19-en-us/parallels-ras-19-administrators-guide/common-management-tasks/maintenance-and-backup/importing-and-exporting-farm-settings-from-the-command-line.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
