> ## 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.

# 管理用户帐户 (wduser.exe)

> 管理用户帐户 (wduser.exe)

出于测试和开发目的,使用此工具可删除、控制登录状态并管理其他用户帐户。

| 命令                               | 说明                    |
| -------------------------------- | --------------------- |
| [signin](#wduser_signin)         | 将指定用户登录到设备            |
| [signout]()                      | 将指定用户从设备注销            |
| [delete](#wduser_delete)         | 从设备中删除指定的用户           |
| [deleteall]()                    | 从设备中删除所有用户            |
| [autosignin](#wduser_autosignin) | 将用户标记为设备开机时自动登录或不自动登录 |
| [addsponsored]()                 | 将受赞助用户登录到设备           |

<a id="wduser_signin" />

## wduser signin

将指定用户登录到设备。如果需要密码或该用户在设备上不存在,则必须提供 base64 编码的密码。此编码并不提供任何安全性,但旨在避免存储在脚本中时出现特殊字符错误。

`wduser signin <email> [<base64 encoded password>] `

| 选项                        | 说明               |
| ------------------------- | ---------------- |
| `email`                   | 用户的电子邮件地址。       |
| `base64 encoded password` | 用户的 base64 编码密码。 |

<a id="wduser_signout" />

## wduser signout

将指定用户从设备注销。

`wduser signout <email>`

| 选项      | 说明         |
| ------- | ---------- |
| `email` | 用户的电子邮件地址。 |

<a id="wduser_delete" />

## wduser delete

从设备中删除指定的用户。

`wduser delete <email>`

| 选项      | 说明         |
| ------- | ---------- |
| `email` | 用户的电子邮件地址。 |

<a id="wduser_deleteall" />

## wduser deleteall

从设备中删除所有用户。

`wduser deleteall`

<a id="wduser_autosignin" />

## wduser autosignin

将用户标记为设备开机时自动登录或不自动登录。

`wduser autosignin <email> <status>`

| 选项       | 说明                                |
| -------- | --------------------------------- |
| `email`  | 用户的电子邮件地址。                        |
| `status` | `autosignin` 的新状态。允许的值为 on 和 off。 |

<a id="wduser_addsponsored" />

## wduser addsponsored

将受赞助用户登录到设备。此方法要求已有常规用户登录才会成功。

`wduser addsponsored`

## 另请参阅

[基于主机的命令行工具](/tools/tools-console/console_commandlinetools/consolecommandlinetools)

[XTF 传输错误](/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [基于主机的命令行工具](/zh-CN/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)
- [XBOX Live 测试帐户工具 (XblTestAccountGui.exe)](/zh-CN/tools/tools-services/live-xbox-live-account-tool.md)
- [面向 XBOX 的主机端命令行工具](/zh-CN/tools/tools-console/console_commandlinetools/index.md)
- [沙盒](/zh-CN/publishing/game-publishing/concepts/sandboxes.md)
- [管理游戏流式传输 (wdgamestream.exe)](/zh-CN/tools/tools-console/console_commandlinetools/wdgamestream.md)
