---
schema_version: "1"
id: 327cc350dac9977ee6e1410c63c704157b673a936f42fc4ed7da9c9e6c63f3a4
title: ATRDiag.exe 命令列參考
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server/atrdiag.md
canonical_url: https://help.tableau.com/v0.0/server/zh-tw/atrdiag.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 95263e3a0f8d7d6a47d39e5f0ee69543cd6a01b4574e18bd760614ed4ccfe786
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（若有多個有效）。

`-showAll`

列舉登錄的內容，以查看可用的 ATR（其中一些可能無效）。

`-showVerbose`

列舉登錄的內容，並使用 `-version/-product/-subProduct/-version` 根據每個產品提供。

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

預設為「Tableau Desktop」。必須指定「Tableau Server」以顯示伺服器 ATR。

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

![屬性詳細資料的命令提示字元視窗。](/tableau/next/zh-tw/server/zh-tw/Img/atrdiag_product_tableau_server.png)

`-subProduct {subProduct}`

預設為「專業」。

`-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`

可選。

顯示命令說明。