Actually adding SCEP script
authorJuan Carlos Aguilera Mendez <juanam@microsoft.com>
Wed, 28 Feb 2018 00:11:48 +0000 (16:11 -0800)
committerJuan Carlos Aguilera Mendez <juanam@microsoft.com>
Wed, 28 Feb 2018 00:11:48 +0000 (16:11 -0800)
scep-ops.cmd [new file with mode: 0644]

diff --git a/scep-ops.cmd b/scep-ops.cmd
new file mode 100644 (file)
index 0000000..77b15c3
--- /dev/null
@@ -0,0 +1,34 @@
+@if not defined _echo @echo off
+
+set NO_DASHES_ARG=%1
+if not defined NO_DASHES_ARG goto no_args
+if /I [%NO_DASHES_ARG:-=%] == [?] goto Usage
+if /I [%NO_DASHES_ARG:-=%] == [h] goto Usage
+
+if not defined NO_DASHES_ARG goto Usage
+if /I [%NO_DASHES_ARG:-=%] == [i] (
+  echo Instaling SCEP ...
+  call \\ddsccmps\Client\scepinstall.exe /q /s /policy \\ddsccmps\Client\ep_defaultpolicy.xml
+  exit /b !ERRORLEVEL!
+)
+
+if /I [%NO_DASHES_ARG:-=%] == [u] (
+  echo Uninstaling SCEP ...
+  call \\ddsccmps\Client\scepinstall.exe /u /s 
+  exit /b !ERRORLEVEL!
+)
+
+goto Usage
+
+:no_args
+if [%1]==[] goto Usage
+
+:Usage
+echo.
+echo Usage: scep-ops [-i] [-u]
+echo Install or uninstalls System Center Endpoint Protection.
+echo Options:
+echo     -i     - Installs SCEP.
+echo     -u     - Uninstalls SCEP.
+echo.
+exit /b
\ No newline at end of file