From 294092473a01f9175d2c8173d3497a4d6e9a9999 Mon Sep 17 00:00:00 2001 From: Juan Carlos Aguilera Mendez Date: Tue, 27 Feb 2018 16:11:48 -0800 Subject: [PATCH] Actually adding SCEP script --- scep-ops.cmd | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 scep-ops.cmd diff --git a/scep-ops.cmd b/scep-ops.cmd new file mode 100644 index 0000000000..77b15c3685 --- /dev/null +++ b/scep-ops.cmd @@ -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 -- 2.34.1