> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-admin-guide/v19-ja-jp/natasuku/shisutemuibento/mentenansutobakkuappu/komandorainkaranofmunoekusuptooyobiinpto.md).

# コマンドラインからのファーム設定のエクスポートおよびインポート

Parallels RAS PowerShell を使用すると、Parallels RAS の管理タスクの大部分をコマンドラインから実行できます。

このセクションでは、PowerShell を使用したファーム設定のエクスポートおよびインポートについて説明します。Parallels RAS PowerShell の詳細については、<https://www.parallels.com/products/ras/resources/> にアクセスして、「**Parallels RAS PowerShell Guide**」をダウンロード（またはオンラインで参照）してください。

ファーム設定のエクスポートおよびインポートの使用法の 1 つとして、自動化テストを実行できます。個別の設定を作成し、エクスポートした後、インポートすることで、特定のテストシナリオでその設定を使用できます。この機能を Windows タスクスケジューラーと併用して、ファーム設定の定期的なバックアップを行うこともできます。

**Parallels RAS PowerShell のインストール**

Parallels RAS のデフォルトインストールを実行すると、RAS PowerShell はデフォルトでインストールされます。RAS PowerShell をまだインストールしていない場合は（または、別のコンピューターにインストールしている場合は）、次の操作を実行します。

1. Parallels RAS インストーラーを実行します。
2. **\[カスタム]** を選択し、**\[Parallels RAS PowerShell]** コンポーネントを選択します。
3. ウィザードを実行し、Parallels RAS PowerShell をインストールします。

**Parallels RAS PowerShell の使用**

Parallels RAS PowerShell の最新情報はすべて、「**Parallels RAS PowerShell Guide**」で確認できます。このガイドには、「**スタートアップ**」の章が含まれ、Parallels RAS PowerShell を手軽に始めるために役に立つだけでなく、完全なリファレンスおよびコードサンプルとしても利用できます。このガイドを参照またはダウンロードするには、<https://www.parallels.com/products/ras/resources/> にアクセスしてください。

以下の手順に従って、Parallels RAS ファーム設定をエクスポートおよびインポートします。

Parallels RAS PowerShell モジュールをインポートするには、PowerShell コンソールを開き、次のコマンドを実行します。

`Import-Module PSAdmin`

Parallels RAS セッションを作成します（Parallels RAS をインストールしたサーバーの名前または IP アドレスを使用します）。

`New-RASSession -Server "server.company.dom"`

ファーム設定をエクスポートするには、次のコマンドを実行します（バックアップファイルのパスおよびファイル名を独自の値で置き換えます）。

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

ファーム設定をインポートするには、次のコマンドを実行します。

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-admin-guide/v19-ja-jp/natasuku/shisutemuibento/mentenansutobakkuappu/komandorainkaranofmunoekusuptooyobiinpto.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
