---
schema_version: "1"
id: 761495c1fbab66262271636c65ec1e19ef0c2a68a1ffef152c56d25419267c51
title: ATRDiag.exe 命令行参考
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server/atrdiag.md
canonical_url: https://help.tableau.com/current/server/zh-cn/atrdiag.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 75200bcaff820c40a9364b134cd81d8f2bbb3abe0b2226c9d1a95cadddf6c43f
description: Command-line reference for ATRDiag.exe to manage login-based and ATR licensing issues.
---
[跳转到主要内容](#main-content)

# ATRDiag.exe 命令行参考

您可以使用 ATRDiag 命令行实用工具来管理与 基于登录名的许可证管理 和授权运行 (ATR) 功能相关的许可问题。

## 概要

`ATRDiag -dumpATR -showAll -showVerbose -product ["Tableau Desktop"]["Tableau Prep"]["Tableau Server"]`

`-subProduct {subProduct} -version {version} -setVersion {version}`

`-log [Trace][Debug][Info][Warn][Error][Fatal][Off] -status -deleteAllATRs`

`-deleteInvalidATRs -deleteATR {atrIdToDelete}`

`-enableATRFeature -disableATRFeature -enableLBLMFeature -disableLBLMFeature`

`-requireLBLMFeature -setDuration {seconds`}

**注意：**所有 ATRDiag 选项均不区分大小写。

## 选项

`-dumpATR`

在命令提示符（如果存在）上显示有效的授权运行 (ATR)。使用 `-version/-product/-subProduct/-version` 控制在多个 ATR 有效的情况下转储哪个 ATR。

`-showAll`

枚举注册表的内容以查看可用的 ATR。（其中一些可能无效）。

`-showVerbose`

枚举注册表的内容并使用 `-version/-product/-subProduct/-version` 以便按产品提供。

`-product ["Tableau Desktop"]["Tableau Prep"]["Tableau Server"]`

默认为“Tableau Desktop”。必须指定“Tableau Server”才能显示服务器 ATR。

例如：`atrdiag -product "Tableau Server"`

![带有属性详细信息的命令提示符窗口。](/tableau/current/zh-cn/server/zh-cn/Img/atrdiag_product_tableau_server.png)

`-subProduct {subProduct}`

默认为“Professional”。

`-version {version}`

无默认值：此字段的有效值为“Tableau 2021.1”。

`-setVersion {version}`

保留 -version 的默认值。

`-log [Trace][Debug][Info][Warn][Error][Fatal][Off]`

显示 ATR 日志信息。

`-status`

提供 ATR 功能状态（启用或禁用）、许可证服务器和转储 ATR。

`-deleteAllATRs`

移除计算机上的所有 ATR。

`-deleteInvalidATRs`

移除所有无效的 ATR。

`-deleteATR {atrIdToDelete}`

按 ID 移除 ATR。

`-enableATRFeature`

打开 ATR 功能。必须以管理员身份运行。仅供在 Tableau Desktop 上使用。

`-disableATRFeature`

关闭 ATR 功能。必须以管理员身份运行。仅供在 Tableau Desktop 上使用。

`-enableLBLMFeature`

打开 基于登录名的许可证管理 (LBLM)。必须以管理员身份运行。

`-disableLBLMFeature`

关闭 基于登录名的许可证管理 (LBLM)。必须以管理员身份运行。

`-requireLBLMFeature`

将 基于登录名的许可证管理 (LBLM) 功能设置为必需。必须以管理员身份运行。

`-setDuration {seconds}`

将 `ATRRequestedDurationSeconds` 设置为秒数。必须以管理员身份运行。

## 全局选项

`-h, --help`

可选。

显示命令帮助。