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

# 自动执行许可任务

您可以使用 `[tsm licenses](https://help.tableau.com/v0.0/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\`