---
schema_version: "1"
id: 0d5aee78e16badd5d146084bff4aafc1cfd078ae55edde9485705efa5ebd5054
title: tsm reset
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/cli_reset_tsm.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/cli_reset_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: f46bda4815e436af86ae719df99fdd3480b074480811875a3bc319455e1efd9f
description: Reference for the tsm reset command to clear the initial admin user before creating a new one.
---
[跳转到主要内容](#main-content)

# tsm reset

使用 `tsm reset` 命令清除初始管理员用户，以便您能够输入新管理员用户。运行 `tsm reset` 之后，您必须重新运行 `tabcmd [initialuser](https://help.tableau.com/current/server-linux/zh-cn/tabcmd_cmd.htm#initialu)` 命令来创建新的初始管理员。新的用户名不能与以前的管理员用户相同。

使用现有初始管理员用户：

1. 运行 `tsm reset` 以重置现有初始用户。
2. 运行 `tabcmd initialuser` 以创建新的初始管理员。
3. 运行 `tsm reset` 以重置新的管理员用户。
4. 运行 `tabcmd initialuser` 以重新创建原始初始管理员。

如果您的组织为 Tableau 身份存储使用 Active Directory 或 LDAP，则指定的帐户和密码必须与目录中的帐户匹配。

### 概要

`tsm reset[option] [global options]`

### 选项

\-d,--delete-all-sessions

可选。

重置服务器时删除所有活动用户会话。

\--request-timeout <timeout in seconds>

可选。

等待指定的时间以完成命令。默认值为 1800（30 分钟）。

## 全局选项

\-h, --help

可选。

显示命令帮助。

\-p, --password <password>

在会话不是活动状态的情况下为必需，`-u` 或 `--username` 也为必需。

为在 `-u` 或 `--username` 中指定的用户指定密码。

如果密码包括空格或特殊字符，请将其括在引号中：

`--password 'my password'`

\-s, --server https://<hostname>:8850

可选。

对 Tableau 服务管理器使用指定的地址。URL 必须以 `https` 开头，包括端口 8850，并使用服务器名称（而不是 IP 地址）。例如，`https://<tsm_hostname>:8850`。如果没有指定服务器，则假定为 `https://<localhost | dnsname>:8850`。

\--trust-admin-controller-cert

可选。

使用此标志来信任 TSM 控制器上的自签名证书。有关证书信任和 CLI 连接的详细信息，请参见 [连接 TSM 客户端](https://help.tableau.com/current/server-linux/zh-cn/tsm_overview.htm#Connecti)。

\-u, --username <user>

在会话不是活动状态的情况下为必需，`-p` 或 `--password` 也为必需。

指定用户帐户。如果未包括此选项，则使用您登录所使用的凭据运行该命令。