Batch-Datei zum finden von Symantec End Point Protection
Ich Hoffe Ihr könnt mir weiterhelfen.
Ich möchte ein Batch-Datei schreiben, die herausfinden, ob auf einem Rechner Symantec Endpoint Protection installiert ist.
Ich habe dazu schon mal eine Datei geschrieben. Diese funkitonierte am Anfang noch nun hängt sie.
Ich habe dazu schon mal eine Datei geschrieben. Diese funkitonierte am Anfang noch nun hängt sie.
@echo off
set "OutFile=regedit.txt"
set "Find=find.txt"
set "software=Symantec Endpoint Protection"
set "R=HKEY_LOCAL_MACHINE\Software\Symantec\Symantec Endpoint Protection"
:start
regedit /e %OutFile% "%R%"
find "%software%" %OutFile% > %Find%
del %OutFile%
FOR /F "tokens=4* delims=\" %%i in (%find%) do set "inhalt=%%i"
if "%inhalt%"=="%software%" (
goto :end
) else (
goto :error
)
pause
:end
echo %software% wurde auf dem System gefunden.
del %Find%
pause
exit
:error
echo %software% wurde nicht auf dem System gefunden.
pause
exit
Please also mark the comments that contributed to the solution of the article
Content-Key: 108268
Url: https://administrator.de/contentid/108268
Printed on: April 24, 2024 at 15:04 o'clock