2 Replies Latest reply on May 18, 2012 1:17 AM by Ton Machielsen

    PsExec Command has failed with exit value - 1 for bulk agent installer

    Soundappan Shanmugam

      Couldnt fine anything on Google regarding the exit code -1

       

       

      [2012-05-16|09:33:57] Starting agent install routines

      [2012-05-16|09:33:57] Checking agent status on SNITSWDUCSHDS1.dev.ads.cummins.com

      [2012-05-16|09:34:32] No existing RSCD Agent detected on :SNITSWDUCSHDS1.dev.ads.cummins.com

      [2012-05-16|09:34:32] Proceeding with the install routine.

      [2012-05-16|09:34:32] Agent installer selected :agentinstaller1

      [2012-05-16|09:34:32] RSC File selected :rsc1

      [2012-05-16|09:34:32] Attempting copier Windows Local Copier with password set: DEV

      [2012-05-16|09:34:59]

      [2012-05-16|09:34:32] Attempting to copy agent installer "agentinstaller1" over SMB

      [2012-05-16|09:34:59]

      [2012-05-16|09:34:59] Successfully copied "RSCD760-293-W32.EXE" to the temporary directory on   "SNITSWDUCSHDS1.dev.ads.cummins.com"

      [2012-05-16|09:34:59] Attempting to copy Silent Installer over SMB

      [2012-05-16|09:34:59]

      [2012-05-16|09:34:59] Successfully copied "rscd.iss" to the temporary directory on   "SNITSWDUCSHDS1.dev.ads.cummins.com"

      [2012-05-16|09:34:59] Attempting to copy RSC Files over SMB

      [2012-05-16|09:34:59]

      [2012-05-16|09:34:59] Successfully copied "exports" to the temporary directory on   "SNITSWDUCSHDS1.dev.ads.cummins.com"

      [2012-05-16|09:34:59]

      [2012-05-16|09:34:59] Successfully copied "users.local" to the temporary directory on   "SNITSWDUCSHDS1.dev.ads.cummins.com"

      [2012-05-16|09:34:59] Attempting installer Windows Local Installer with password set: DEV

      [2012-05-16|09:35:23]

      [2012-05-16|09:35:23]

      [2012-05-16|09:35:23]

      [2012-05-16|09:35:23] PsExec v1.98 - Execute processes remotelyCopyright (C) 2001-2010 Mark RussinovichSysinternals - www.sysinternals.comEula declined.

      [2012-05-16|09:35:23] ExitValue = 1

      [2012-05-16|09:35:23] PsExec Command has failed with exit value - 1

      [2012-05-16|09:35:23] Agent install process with PsExec has failed

      [2012-05-16|09:35:23] Cleaning temporary files on: SNITSWDUCSHDS1.dev.ads.cummins.com

      [2012-05-16|09:35:25] Cleaned temporary files on: SNITSWDUCSHDS1.dev.ads.cummins.com

      [2012-05-16|09:35:25] No installers were successful. Exiting...

        • 1. PsExec Command has failed with exit value - 1 for bulk agent installer

          -1 means a general error. See http://www.itninja.com/blog/view/installshield-error-codes-setup-log for information on this.

           

          check the setup.log on the target located in the directory the installer is copied to.

          Also, what is the target OS? Does it have UAC enabled? if so, can you disable UAC and try again?

           

          This seems like a psexec error though.


          • 2. PsExec Command has failed with exit value - 1 for bulk agent installer

            You have to either run the pstools at least once interactive so you can accept the End User License Agreement or run/install the pstools with the /accepteula parameter.

            Whether you accepted the EULA gets stored in the Windows registry.

            Simply way to get around this is to set the registry key it uses to check if the EULA has been accepted manually. This is under: "HKCU\Software\Sysinternals\"

             

            With one key per product, e.g. for psexec: "HKCU\Software\Sysinternals\PsExec"

            The value pair to set under this is "EulaAccepted", REG_DWORD, 0x00000001

             

            Quick batch script which does this for all the pstools tools:

             

            REG ADD "HKCU\Software\Sysinternals\PsExec" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\psfile" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsGetSid" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsInfo" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsKill" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsList" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsLoggedon" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsLoglist" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsPasswd" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsService" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsShutdown" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            REG ADD "HKCU\Software\Sysinternals\PsSuspend" /v "EulaAccepted" /t REG_DWORD /d 00000001 /f
            1 of 1 people found this helpful