> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 復原 (wdRecovery.exe)

> 復原 (wdRecovery.exe)

從 XBOX 網路、本機更新檔案或裝載於可存取之遠端共用上的檔案安裝新的系統復原。

| 命令 | 描述 |
| - | - |
| [install](#wdrecovery_install) | 安裝主機復原 |
| [live]() | 從雲端安裝主機復原 |
| [getversionid](#wdrecovery_getversionid) | 取得目前安裝之復原的版本識別碼，或指派給特定更新群組 ('LatestProduction' 或 'LatestPreview') 之復原的版本識別碼 |

<a id="wdrecovery_install" />

## wdRecovery install

從可存取的網路共用下載資料或使用本機檔案來安裝系統更新。需要 XBOX Live 授權此主機安裝此更新。

`wdRecovery install <updatePath> [/factoryreset] [/xblsandbox <sandboxId>] [/skipifequal]`

| 選項 | 描述 |
| - | - |
| `updatePath` | 包含復原檔案之網路共用的路徑。 |
| `factoryreset` | 強制重設所有設定與內部儲存空間。 |
| `xblsandbox` | 覆寫預設的 LIVE 沙箱。 |
| `skipifequal` | 如果主機已在此復原版本上，則略過此更新並傳回 0x8C11111D (不需要此復原)。 |

<a id="wdRecovery_live" />

## wdrecovery live

從雲端下載資料以安裝系統更新，可透過版本識別碼指定，或指定特定更新群組 (LatestProduction 或 LatestPreview) 以安裝指派給該群組的復原。需要 XBOX Live 授權此主機安裝此更新。

`wdRecovery live <versionId> | LatestProduction | LatestPreview [/factoryreset] [/xblsandbox <sandboxId>] [/skipifequal] [/cdnoverride <URI>]`

| 選項 | 描述 |
| - | - |
| `versionId` | 要安裝的確切版本識別碼 (格式為 x.x.xxxx.x.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)。您可以在 [https://aka.ms/XboxRecoveryArchive](https://aka.ms/XboxRecoveryArchive) 查看復原清單 |
| `factoryreset` | 強制重設所有設定與內部儲存空間。 |
| `xblsandbox` | 覆寫預設的 LIVE 沙箱。 |
| `skipifequal` | 如果主機已在此復原版本上，則略過此更新並傳回 0x8C11111D (不需要此復原)。 |
| `cdnoverride` | 以自訂 CDN 端點覆寫 XBOX Live 傳回的 CDN 值。使用此選項時，建議提供版本識別碼參數。所有更新檔案的完整路徑必須如下所示：*\<CDN override value>*.\<*Version ID of the build*>/\<*Flat directory of update files*>，例如 `http://example.com/xboxupdates/10.0.19041.6288.afaf9289-dc86-45ab-9515-02554081a1e8/*` |

<a id="wdrecovery_getversionid" />

## wdrecovery getversionid

取得目前執行之系統軟體的版本識別碼，或指派給特定更新群組 (LatestProduction 或 LatestPreview) 之復原的 versionId。此輸出可作為 'wdrecovery.exe live' 更新命令的版本識別碼。

`wdRecovery getversionid [LatestProduction | LatestPreview]`

## 另請參閱

[主機命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/consolecommandlinetools)

[XTF 傳輸錯誤](/zh-TW/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [主機型命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)
- [適用於 XBOX 的主機型命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/index.md)
- [遠端復原 URI](/zh-TW/reference/deviceportal/remote/atoc-rest-remote.md)
- [遠端復原 (xbremoterecovery.exe)](/zh-TW/tools/tools-console/commandlinetools/xbremoterecovery.md)
- [傳送自訂帳戶復原電子郵件](/zh-TW/services/playfab/api-references/rest/server/account-management/send-custom-account-recovery-email.md)
