OOOOOOOOPS,

I found the reasons why, I'm far to be a real kixtart script developer......



 Quote:
;***********Script pour nettoyer les définitions de virus corrompues pour les clients Symantec Endpoint Protection*************
;***********D'APRES http://service1.symantec.com/SUPPORT/ent...***************

? "Machine name? " Gets $machine
$strComputer = "\\" + $machine

;---------------ARRET DES SERVICES SEP-------------------------

WMISvcMgr ('STOP','Symantec Antivirus',,$strComputer )
SLEEP 10
WMISvcMgr ('STOP','ccEvtMgr',,$strComputer )
SLEEP 10
WMISvcMgr ('STOP','ccSetMgr',,$strComputer )
SLEEP 10

;---------------SUPPRESSION DES FICHIERS ET REPERTOIRES CONTENANT LES DEFINITIONS DE VIRUS--------------------

RD "$strComputer"+"\C$\Program Files\Fichiers communs\Symantec Shared\VirusDefs\" /s
?@error
RD "$strComputer"+"\C$\documents and settings\all users\application data\symantec\liveupdate\downloads\" /s
?@error

;--------------SUPPRESSION DES VALEURS DE LA BASE DE REGISTRE------------------------------

DelValue("$strComputer"+"\HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\","SRTSP")
DelValue("$strComputer"+"\HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\","NAVCORP_70")
DelValue("$strComputer"+"\HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\","DEFWATCH_10")
DelValue("$strComputer"+"\HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\","SepCache3")
DelValue("$strComputer"+"\HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\","SepCache2")
DelValue("$strComputer"+"\HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\","SepCache1")

;---------------DEMARRAGE DES SERVICES SEP-------------------------
Sleep 5
WMISvcMgr ('START','Symantec Antivirus',,$strComputer )
WMISvcMgr ('START','ccEvtMgr',,$strComputer )
WMISvcMgr ('START','ccSetMgr',,$strComputer )