Created
February 15, 2013 01:46
-
-
Save ebibibi/4958024 to your computer and use it in GitHub Desktop.
detect sccm client is installed or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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