Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

Cannot push script...

$
0
0

Hello,

When I run it locally it is fine but it breaks at some point when I push from the distribution from System Center Configuration Manager with an error 255 :

rem @echo off
taskkill /F /IM ACLIENT.EXE
taskkill /F /IM ACLNTUSR.EXE
taskkill /F /IM AEXNSAGENT.EXE
taskkill /F /IM AEXAGENTUIHOST.EXE
rem start /wait "C:\Program Files\Altiris\Notification Server\NSCap\Bin\Win32\X86\Carbon Copy Packageccunsetup.exe" -q
REM Uninstall All NS Agents"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe /UninstallAgents""C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe /ResetGuid""C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe /Clean"
sc delete AltirisACSvc

set ERRORLEVEL=0

SET DS=
IF NOT %USERDOMAIN%== SET DS=
:aclientdetection

IF EXIST "%SYSTEMDRIVE%\Altiris\Aclient\aclient.exe" goto aclientremovalA
IF EXIST "%PROGRAMFILES%\Altiris\Aclient\aclient.exe" goto aclientremovalB

:aclientremovalA

"%SYSTEMDRIVE%\Altiris\Aclient\aclient.exe /remove /silent"

goto aagentdetection

:aclientremovalB

"%PROGRAMFILES%\Altiris\Aclient\aclient.exe /remove /silent"

goto aagentdetection

:aagentdetection

rem IF NOT EXIST "%PROGRAMFILES%\Altiris\Altiris Agent\AeXAgentUtil.exe" goto :finalcleanup

:aagentremoval

"%programfiles%\altiris agent\AeXAgentUtil.exe /uninstallagents /clean"

:Finalcleanup

MsiExec.exe /Qn /X{332454D8-73B0-4B4A-954C-D96089CD898A}

IF EXIST "%SYSTEMDRIVE%\Altiris\" rd /s /q "%SYSTEMDRIVE%\Altiris\"
IF EXIST "%PROGRAMFILES%\Altiris\" rd /s /q "%PROGRAMFILES%\Altiris\"
IF EXIST "%WINDIR%\TEMP\alsmb.exe" DEL /s /q "%windir%Temp\alsmb.exe"
IF EXIST %systemdrive%\ACLIENT.CFG DEL /s /q "%systemdrive%\AClient.cfg"

rem unregister components

IF EXIST C:\WINDOWS\system32\AeXMenuCtrlLib.dll regsvr32 /u /s C:\WINDOWS\system32\AeXMenuCtrlLib.dll
IF EXIST C:\WINDOWS\system32\AeXNSConsoleUtilities.dll regsvr32 /u /s C:\WINDOWS\system32\AeXNSConsoleUtilities.dll
IF EXIST C:\WINDOWS\system32\AeXTreeCtrlLib.dll regsvr32 /u /s C:\WINDOWS\system32\AeXTreeCtrlLib.dll

rem clean registry reg query HKLM\Software\Altiris if %errorlevel% == 0 reg delete HKLM\Software\Altiris /f /va reg query HKLM\SOFTWARE\classes\Appid\{5E038245-CF81-44BE-8018-9A2981B9DC9B} if %errorlevel% == 0 reg delete HKLM\SOFTWARE\classes\Appid\{5E038245-CF81-44BE-8018-9A2981B9DC9B} /f REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\AClient /f REG DELETE HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_ACLIENT /f REG DELETE HKLM\SYSTEM\ControlSet001\Enum\Root\LEGACY_ACLIENT /f REG DELETE HKLM\SYSTEM\ControlSet001\Services\AClient /f REG DELETE HKLM\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List /f /v "C:\Program Files\Altiris\AClient\AClntUsr.EXE" REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List /f /v "C:\Program Files\Altiris\AClient\AClntUsr.EXE" reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Altiris.*" /f echo looking for misc alt files del /q %windir%\AeX* del /q %windir%\system32\AeX* taskkill /F /IM ACLIENT.EXE taskkill /F /IM ACLNTUSR.EXE taskkill /F /IM AEXNSAGENT.EXE taskkill /F /IM AEXAGENTUIHOST.EXE RD "C:\Program Files\Altiris" /s /q exit

Severity Type Site code Date / Time System Component Message ID Description
Error Milestone DTS 11/23/2009 2:28:25 PM OPPMCCS6084TST Software Distribution 10006 The program for advertisement "DTS2006D" failed ("DTS0003E" - "Uninstall Altiris Clients"). A failure exit code of 255 was returned.  User context: NT AUTHORITY\SYSTEM    Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. An exit code of 255 is considered a failure.  Solution: For more information on the exit code, refer to the documentation for the program you are distributing.

Any idea ?

thanks,
Dom

Altiris Support / System Center Configuration Manager Support

Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>