Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

What can I capture tabadmin status command in a Batch Script?

'Tableau Server Data Engine' (5980) is running.
'Tableau Server Coordination Service 0' (7528) is running.
'Tableau Server Search and Browse 0' (10172) is running.
'Tableau Server Tabadmin Service 0' (4788) is running. 

How can I know the services that are not running and print them 

1 Answer

0 votes
by (22.5k points)

Try with following code

@echo off
for /F "tokens=1,3* delims='()" %%A in ('tabadmin.exe status --verbose') do (
    if "%%C" == " is running." (
        echo "%%A" is running with identifier %%B.
    ) else (
        echo "%%A" is not running.
    )
)

If you want to learn more about Power BI, then read the Power BI Tutorial. Also, enroll in Power BI online training to become proficient in this BI tool.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...