Skip to content

Instantly share code, notes, and snippets.

@ebibibi
Created February 15, 2013 01:46
Show Gist options
  • Select an option

  • Save ebibibi/4958024 to your computer and use it in GitHub Desktop.

Select an option

Save ebibibi/4958024 to your computer and use it in GitHub Desktop.
detect sccm client is installed or not.
sc query CcmExec |findstr /I "SERVICE_NAME: CcmExec"
if %errorlevel%==0 goto Installed
:Not_Installed
echo sccm client is not installed.
goto end
:Installed
echo sccm client is installed.
goto end
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment