---
schema_version: "1"
id: 55ba86017e16a7f5893b76d5af8f44c7c620d8803c7d607a366ea0c96fa0408d
title: 自动执行许可任务
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/license_automating.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/license_automating.htm
source_site: help.tableau.com
content_type: documentation
content_hash: a39e113d87efee04e51335a7bb8d0b3f5b52c1ea7d442ce2ebb460da96e762a1
description: Automate Tableau Server licensing tasks using command line tools and scripts.
---
[跳转到主要内容](#main-content)

# 自动执行许可任务

您可以使用 `[tsm licenses](https://help.tableau.com/current/server-linux/zh-cn/cli_licenses_tsm.htm)` 来执行许可任务，例如联机或脱机激活或停用 Tableau Server 产品密钥，以及获取关联文件以进行脱机激活或停用。但是，Tableau Server 必须已部署和配置。您可以使用 [Tableau 服务管理器 API](http://onlinehelp.tableau.com/v0.0/api/tsm_api/zh-cn/index.htm) 来自动执行这些许可任务。

`C:\ProgramData\Tableau\Tableau Server\data\tabsvc\logs\`