KNOWLEDGE BASE

Error "'tsm' is not recognized as an internal or external command, operable program or batch file" When Running a TSM Command


Published: 21 Feb 2019
Last Modified Date: 31 Jan 2020

Issue

After uninstalling Tableau Server from the Add/Remove Programs and reinstalling the software, the following error might occur after using TSM commands: 

'tsm' is not recognized as an internal or external command, operable program or batch file.

Environment

  • Tableau Server 2018.2.6, 2018.3.3, 2019.1.1
  • Windows 2012

Resolution

Try the following workaround:
  1. Go to Control Panel \System and Security\System.
  2. Click on Change Settings.
  3. Go to “Advance” tab.
  4. Click on Environment Variables.
  5. Highlight PATH under Sytem Variables
  6. Click Edit
  7. Add a semicolon ';' before the TSM path:
    • example before:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\C:\Program Files\Tableau\Tableau Server\packages\bin.20182.19.0111.2115
  • example after: 
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\Program Files\Tableau\Tableau Server\packages\bin.20182.19.0122.2115

Cause

This behaviour is related to a known issue (ID:870082) that is currently under investigation. 
Did this article resolve the issue?