---
schema_version: "1"
id: b4ce6483d7ff493f4c2c18ef1423ab42b3fc48af7c0713ad2e1a2d15f72fe90d
title: ATRDiag.exe Command Line Reference
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/server/atrdiag.md
canonical_url: https://help.tableau.com/v0.0/server/en-us/atrdiag.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 1fece4bfcc71217f9ef4faeb8026898720f574a0415ab038184ec6189e2bb6b6
description: Command-line reference for ATRDiag.exe to manage login-based and ATR licensing issues.
---
[Skip to main content](#main-content)

# ATRDiag.exe Command Line Reference

You can use the ATRDiag command line utility to manage licensing issues related to the login-based license management and authorization-to-run (ATR) features.

## Synopsis

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

**Note:** All ATRDiag options are case-insensitive.

## Options

`-dumpATR`

Display a valid authorization-to-run (ATR) on the command prompt (if present). Use `-version/-product/-subProduct/-version` to control which ATR is dumped if more than one is valid.

`-showAll`

Enumerate the contents of the registry to see available ATRs.(some of which might not be valid).

`-showVerbose`

Enumerate the contents of the registry and use `-version/-product/-subProduct/-version` to provide per-product.

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

Defaults to "Tableau Desktop". Must specify "Tableau Server" to display Server ATR.

For example: `atrdiag -product "Tableau Server"`

![Command prompt window with attributes details.](/tableau/next/en-us/server/en-us/Img/atrdiag_product_tableau_server.png)

`-subProduct {subProduct}`

Defaults to "Professional".

`-version {version}`

No default; a valid value for this field is "Tableau 2021.1".

`-setVersion {version}`

Persist a default value for -version.

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

Display ATR log information.

`-status`

Provide ATR feature status (enabled or disabled), the license server, and dump the ATR.

`-deleteAllATRs`

Remove all ATRs present on the machine.

`-deleteInvalidATRs`

Remove all invalid ATRs.

`-deleteATR {atrIdToDelete}`

Remove an ATR by ID.

`-enableATRFeature`

Turn on the ATR feature. Must run as an administrator. For use on Tableau Desktop only.

`-disableATRFeature`

Turn off the ATR feature. Must run as an administrator. For use on Tableau Desktop only.

`-enableLBLMFeature`

Turn on login-based license management (LBLM). Must run as an administrator.

`-disableLBLMFeature`

Turn off login-based license management (LBLM). Must run as an administrator.

`-requireLBLMFeature`

Set the login-based license management (LBLM) feature to required. Must run as an administrator.

`-setDuration {seconds}`

Set `ATRRequestedDurationSeconds` to seconds. Must run as an administrator.

## Global Options

`-h, --help`

Optional.

Show the command help.