I'm trying to use a SC command to act as a verification that a program installed, but I would like the query to return silently. Is there any way to use this without it returning the service's status?
sc query MSSQL$Company
if "%ERRORLEVEL%"=="0" (
GOTO Good
) else (
GOTO Bad
)