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

# 凭据 (wdCred.exe)

> 凭据 (wdCred.exe)

使用此工具在主机上添加、删除和枚举网络凭据。

| 命令                   | 说明              |
| -------------------- | --------------- |
| [add](#wdcred_add)   | 在主机上添加或替换网络凭据   |
| [remove]()           | 从主机中删除网络凭据      |
| [list](#wdcred_list) | 列出存储在主机上的所有网络凭据 |

<a id="wdcred_add" />

## wdcred add

在主机上添加或替换网络凭据。

`wdCred add <ServerName> <UserName> <Password> [/verify]`

| 选项            | 说明            |
| ------------- | ------------- |
| `Server Name` | 与凭据关联的服务器名称。  |
| `Username`    | 用于访问网络共享的用户名。 |
| `Password`    | 用于访问网络共享的密码。  |
| `Verify`      | 在添加凭据之前进行验证。  |

<a id="wdcred_remove" />

## wdcred remove

从主机中删除网络凭据。

`wdCred remove <ServerName>`

<a id="wdcred_list" />

## wdcred list

列出存储在主机上的所有网络凭据。

`wdCred list`

## 另请参阅

[基于主机的命令行工具](/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 的主机端命令行工具](/zh-CN/tools/tools-console/console_commandlinetools/index.md)
- [XtfRemoveCredential](/zh-CN/reference/tools/xtf/xtfapi/functions/xtfremovecredential-xtfapi-xbox-windows-m.md)
- [XtfGetCredentialInfoCount](/zh-CN/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfocount-xtfapi-xbox-windows-m.md)
- [XtfAddCredential](/zh-CN/reference/tools/xtf/xtfapi/functions/xtfaddcredential-xtfapi-xbox-windows-m.md)
