rique1me

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.

@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
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 108268

Url: https://administrator.de/forum/batch-datei-zum-finden-von-symantec-end-point-protection-108268.html

Ausgedruckt am: 07.05.2025 um 11:05 Uhr