---
schema_version: "1"
id: 64a32eaa8fa3a8dc14dd5ba783b4af8bf29d2b38b010ae15c3bd7c9afd22a4e6
title: Upgrade-tsm 脚本的帮助输出
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server/upgrade_tsm-h.md
canonical_url: https://help.tableau.com/current/server/zh-cn/upgrade_tsm-h.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 9565ac87850e07e9aac358e6e9b9bdef5ccc0047fafe317f1b64b0a8c29f9beb
description: Reference for the upgrade-tsm script help output.
---
[跳转到主要内容](#main-content)

# Upgrade-tsm 脚本的帮助输出

以下帮助内容是运行以下命令时的输出：

`upgrade-tsm.cmd -h`

upgrade-tsm 脚本将安装到 `Tableau\Tableau Server\Packages\scripts.<version_code>`。

## 输出

Usage:
upgrade-tsm \[optional parameters\]
					Perform upgrade using the specified parameters.

Global Parameters
-u, --username <USER>
					TSM administrator user name. Current user will be assumed if not provided.

-p, --password <PASSWORD>
					TSM administrator password. You will be prompted for a password if upgrading
					from a version prior to 2019.2 and the password is not provided.

-sp,--service-runas-password <PASSWORD>
					Service runas user password. You will be prompted for password if not set
					and non-default runas user is configured.

Optional Parameters
--trust-admin-controller-cert
					Do not validate the server certificate.

--no-prompt
					Suppress script prompts. You will only be prompted for missing required
					parameters, for example, if you specify a user name but not a password. If the
					script needs to stop or restart Tableau Server it will do so without warning
					or prompting. Use this if you automate the upgrade, for example, with a script.

--skip-preflight-check
					Skip the preflight check. This option should only be used if you are sure
					the preflight check is failing in error.

--external-repository-config-file=<filename>
					Required if upgrading from a Tableau Server to a version of Tableau Server
					that uses a later major version of PostgreSQL and is configured to use an
					external repository. The filename is a configuration file describing a new
					instance of the external repository. The new repository should use the same
					type of external service as the current external repository, but with the
					supported version of PostgreSQL.
			
--external-repository-cert-file=<filename>
					Required if upgrading from a Tableau Server to a version of Tableau Server
					that uses a later major version of PostgreSQL and is configured to use an
					external repository. The filename is a SSL certificate file for the new
					external repository. The new repository should use the same type
					of external service as the current external repository, but with the
					supported version of PostgreSQL.