activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年3月24日

添加凭据

UiPath.Credentials.Activities.AddCredential

以自定义暂留类型将指定凭据存储在 Windows 凭据管理器中,然后返回一个“布尔值”,告知您该过程是否成功。

备注:

凭据活动包现在与 .NET 5 Windows 兼容。

属性

常见
  • DisplayName - The display name of the activity. This field supports only String variables.
输入
  • “凭据类型”- 要添加的凭据的类型。可用的选项如下:
    • “无”- 未应用任何凭据类型。这可能导致无法保存凭据。
    • “通用凭据”- 特定身份验证包未使用的通用凭据。
    • “域密码”- 特定于 Microsoft 身份验证包(NTLM、Kerberos 和 Negotiate)的密码凭据。
    • “域证书”- 特定于 Microsoft 身份验证包(Kerberos、Negotiate 和 Schannel)的证书凭据。
    • “域可见密码”- 特定于 Microsoft 身份验证包 (Passport) 的密码凭据。
  • Password - The password to be used with the credentials. This field supports string variables.
  • “暂留类型”- 定义存储给定凭据所应遵循的规则。可用的选项如下:
    • “会话”- 凭据仅在当前登录会话期间存储于 Windows 凭据管理器中。这些凭据对同一用户的其他登录会话不可见。此用户注销并重新登录后,凭据将会消失。
    • “本地计算机”- 凭据在同一台计算机上的所有后续登录会话期间一直存在。这些凭据对同一用户在同一台机器上的其他登录会话可见,但对此用户在其他机器上的登录会话不可见。
    • “企业”- 凭据在同一台机器上的所有后续登录会话期间一直存在。对于同一用户在同一台机器上的其他登录会话和此用户在其他计算机上的登录会话,这些凭据均可见。
  • Secure String Password - The secure string password to be used with the credentials.
  • Target - The Internet or network address that is to be used with the given credentials. This field supports string variables.
  • Username - The username to be used with the credentials. This field supports string variables.
    备注:

    必须用引号将所有字符串括起。

其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • “结果”- 此为“布尔值”变量,用于指明给定凭据是否成功存储在 Windows 凭据管理器中。
  • 属性

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新