14 Replies Latest reply on May 31, 2018 10:34 AM by yexp

    Inject Script fails in provisioning

    chrisbb Rookie

      I started with the provisioning and unattend templates  with the Deploying Windows 7 best known methods article.   I had to do some tweaks to get it to actually deploy the image to my machine but now it deploys and labels the drives properly.  Now  however I am getting an error during the inject script section of the template. in the status it gives me the error [80001501H] The web service responded with an invalid call"  

       

      If I look at the inject script action in the provision history, I have the internal value result code of : -2147478271

       

      If I look in the ldprovision log file from the client I get the following....

       

      2013-06-18 21:32:57(1064-1024) ldProvision:*********  Begin an action - Inject_script

      2013-06-18 21:32:58(1064-1024) ldProvision:Do EnvironmentCheck

      2013-06-18 21:32:58(1064-1024) ldProvision:Is WinPE Action=1, Is WinPe Environment=1

      2013-06-18 21:32:58(1064-1024) ldProvision:Session Data: <variables/>

      2013-06-18 21:32:58(1064-1024) ldProvision:Create process (x:\cba8\httpclient.exe) with args (  -f "X:\ldprovision\InjectScriptHandler.exe" http://myserver/LdLogon/Provisioning/windows/InjectScriptHandler.exe)

      2013-06-18 21:32:58(1064-1024) ldProvision:Process exit code:0

      2013-06-18 21:32:58(1064-1024) ldProvision:The file (X:\ldprovision\InjectScriptHandler.exe) was successfully downloaded

      2013-06-18 21:32:58(1064-1024) ldProvision:Download handler ok.

      2013-06-18 21:32:58(1064-1024) ldProvision:Launching action handler [InjectScriptHandler.exe] with parameters ["]

      2013-06-18 21:32:58(1064-1024) ldProvision:handler launched.

      2013-06-18 21:32:58(1064-1024) ldProvision:Reporting action status: 5 to core

      2013-06-18 21:32:58(1064-1024) ldProvision:Call web service GetStatusString()

      2013-06-18 21:32:58(1064-1024) ldProvision:Start TryallWebService Attempt:0.

      2013-06-18 21:32:58(1064-1024) ldProvision:End TryallWebService Attempt:0. ExitCode:0

      2013-06-18 21:32:58(1064-1024) ldProvision:StatusString = The Web service responded with an invalid call.

      2013-06-18 21:32:58(1064-1024) ldProvision:Call web service SetActionStatus()

      2013-06-18 21:32:58(1064-1024) ldProvision:Start TryallWebService Attempt:0.

      2013-06-18 21:33:02(1064-1024) ldProvision:End TryallWebService Attempt:0. ExitCode:0

      2013-06-18 21:33:02(1064-1024) ldProvision:End of action - Inject_script

      2013-06-18 21:33:02(1064-1024) ldProvision:Last action failed

      2013-06-18 21:33:02(1064-1024) ldProvision:**********************************  End processing actions  **********************************

       

      The injectscripthandler.exe log is below..

       

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:CreateHeaderFile - X:\ldprovision\setupinstall.header.txt

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:CreateBodyFile - X:\ldprovision\setupinstall.body.txt

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:Args = -V -H"X:\ldprovision\setupinstall.header.txt" -o"X:\ldprovision\setupinstall.body.txt" -f"X:\ldprovision\setupinstall.result.xml" http:/myserver/landesk/managementsuite/core/ProvisioningWebService/WebService.asmx

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:going to call x:\cba8\httpclient.exe -V -H"X:\ldprovision\setupinstall.header.txt" -o"X:\ldprovision\setupinstall.body.txt" -f"X:\ldprovision\setupinstall.result.xml" http://myserver/landesk/managementsuite/core/ProvisioningWebService/WebService.asmx

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:start Try httpclient No=0.

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:end Try httpclient No=0.exitCode=0

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:Exit Code of InstallCallHTTPClient = 0

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:FindElement returned 0, value is false

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:invalid result

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:FindElement returned 0

      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:An internal error has occurred with the management product.

       

      I can navigate to the path where webservice.asmx is located and seems to be fine there at least from a different computer in a web browser, and I have the drive mapped where the unattend file is located.

       

      Any advise on where to check would be greatly appreciated..  I can't tell if it is something in IIS, or if there is somewhere else I have a file missing...  Any help would be appreciated.

       

      Thanks

       

      Chris

        • 1. Re: Inject Script fails in provisioning
          rmeyer SupportEmployee

          Look at the INJECTSCRIPTHANDLER.LOG file in WINPE in the X:\LDPROVISION or X:\LDPROVISIONING folder to see why it is failing.

          • 2. Re: Inject Script fails in provisioning
            chrisbb Rookie

            This is what the log indicates...  I can browse to the directory indicated with the webservice.asmx file fine from other computers.   From looking at the log, the only th ing I can tell is "An internal error has occured with the management product"  It looks as if it's failing on the httpclient load but that's just a guess on my part based on my understanding of the loadig process described in the log file.  

             

            The injectscripthandler.exe log is below..

             

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:CreateHeaderFile - X:\ldprovision\setupinstall.header.txt

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:CreateBodyFile - X:\ldprovision\setupinstall.body.txt

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:Args = -V -H"X:\ldprovision\setupinstall.header.txt" -o"X:\ldprovision\setupinstall.body.txt" -f"X:\ldprovision\setupinstall.result.xml" http:/myserver/landesk/managementsuite/core/ProvisioningWebService/WebService.asmx

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:going to call x:\cba8\httpclient.exe -V -H"X:\ldprovision\setupinstall.header.txt" -o"X:\ldprovision\setupinstall.body.txt" -f"X:\ldprovision\setupinstall.result.xml" http://myserver/landesk/managementsuite/core/ProvisioningWebService/WebService.asmx

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:start Try httpclient No=0.

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:end Try httpclient No=0.exitCode=0

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:Exit Code of InstallCallHTTPClient = 0

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:FindElement returned 0, value is false

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:invalid result

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:FindElement returned 0

            2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:An internal error has occurred with the management product.

            • 3. Re: Inject Script fails in provisioning
              Rookie

              UP!

               

              HI,

               

              I have the same problem, anyone know how to resolve this?

               

              regards.

              • 4. Re: Inject Script fails in provisioning
                rmeyer SupportEmployee

                Check the variables used in the unattend.xml that you are using to make sure they exist or it will cause this problem. Also, if you are using the ldHostname variable in the unattend, make sure the database value that it points to exists in the inventory record for the computer that you are imaging. The default value for ldHostname is Computer. Device Name which does not exist for computers that are PXE booted and it has to be change to Display Name instead of Device name to make is work.

                • 5. Re: Inject Script fails in provisioning
                  Rookie

                  Hi, thanks for your reply.

                   

                  I try that but not solve my problem.

                   

                  i try to had in unattend.xml a name like : LandeskPost        The error is the same i get An internal error has occurred with the management product

                  • 6. Re: Inject Script fails in provisioning
                    rmeyer SupportEmployee

                    What is in the INJECTSCRIPTHANDLER.LOG file and what is in your UNATTEND.XML that you are trying to inject?

                    • 7. Re: Inject Script fails in provisioning
                      Rookie

                      I have exactly the same error in my injectscripthandler.log than chrisbb

                       

                      Like this :

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:CreateHeaderFile - X:\ldprovision\setupinstall.header.txt

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:CreateBodyFile - X:\ldprovision\setupinstall.body.txt

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:Args = -V -H"X:\ldprovision\setupinstall.header.txt" -o"X:\ldprovision\setupinstall.body.txt" -f"X:\ldprovision\setupinstall.result.xml" http:/myserver/landesk/managementsuite/core/ProvisioningWebService/WebService.asmx

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:going to call x:\cba8\httpclient.exe -V -H"X:\ldprovision\setupinstall.header.txt" -o"X:\ldprovision\setupinstall.body.txt" -f"X:\ldprovision\setupinstall.result.xml" http://myserver/landesk/managementsuite/core/ProvisioningWebService/WebService.asmx

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:start Try httpclient No=0.

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:end Try httpclient No=0.exitCode=0

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:Exit Code of InstallCallHTTPClient = 0

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:FindElement returned 0, value is false

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:invalid result

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:FindElement returned 0

                      2013-06-13 18:07:28(1072-1044) InjectScriptHandler.exe:An internal error has occurred with the management product.

                       

                      And i use this unattend.xml :

                       

                      <?xml version="1.0" encoding="utf-8"?>

                      <unattend>

                        <settings pass="auditSystem">

                          <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                            <DriverPaths>

                              <PathAndCredentials wcm:keyValue="1" wcm:action="add">

                                <Path>c:\windows\LDDriverStore</Path>

                              </PathAndCredentials>

                            </DriverPaths>

                          </component>

                          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">

                            <UserAccounts>

                              <AdministratorPassword>

                                <PlainText>true</PlainText>

                                <Value>%AdminPass%</Value>

                              </AdministratorPassword>

                            </UserAccounts>

                            <AutoLogon>

                              <Enabled>true</Enabled>

                              <Username>Administrator</Username>

                              <Password>

                                <PlainText>true</PlainText>

                                <Value>%AdminPass%</Value>

                              </Password>

                              <LogonCount>1</LogonCount>

                            </AutoLogon>

                          </component>

                        </settings>

                        <settings pass="auditUser">

                          <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                            <RunSynchronous>

                              <RunSynchronousCommand wcm:action="add">

                                <Order>1</Order>

                                <Path>c:\windows\System32\sysprep\sysprep.exe /oobe /generalize /reboot </Path>

                              </RunSynchronousCommand>

                            </RunSynchronous>

                          </component>

                        </settings>

                        <settings pass="oobeSystem">

                          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">

                            <OOBE>

                              <HideEULAPage>true</HideEULAPage>

                              <ProtectYourPC>1</ProtectYourPC>

                              <SkipMachineOOBE>true</SkipMachineOOBE>

                              <NetworkLocation>Work</NetworkLocation>

                              <SkipUserOOBE>true</SkipUserOOBE>

                            </OOBE>

                            <ProductKey>%Win7ProdKey%</ProductKey>

                            <RegisteredOwner>User</RegisteredOwner>

                            <RegisteredOrganization>LANDesk</RegisteredOrganization>

                            <UserAccounts>

                              <AdministratorPassword>

                                <PlainText>true</PlainText>

                                <Value>%AdminPass%</Value>

                              </AdministratorPassword>

                            </UserAccounts>

                            <AutoLogon>

                              <Enabled>true</Enabled>

                              <Username>Administrator</Username>

                              <Password>

                                <PlainText>true</PlainText>

                                <Value>%AdminPass%</Value>

                              </Password>

                              <LogonCount>1</LogonCount>

                            </AutoLogon>

                          </component>

                        </settings>

                        <settings pass="specialize">

                          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">

                            <ComputerName>%ldHostname%</ComputerName>

                          </component>

                         </settings>

                      </unattend>

                       

                       

                       

                       

                      I set my variable :

                       

                      %AdminPass%

                      %Win7ProdKey%

                       

                      I deploy an windows 7 x64 with imagex

                      • 8. Re: Inject Script fails in provisioning
                        rmeyer SupportEmployee

                        The problem is going to be with the %ldHostname% variable. Attach a screenshot of the public variables and also any template variables if they exist.

                        • 9. Re: Inject Script fails in provisioning
                          Rookie

                          template.png

                          variable publique.png

                           

                          FYI i have to set value in english too.

                          • 10. Re: Inject Script fails in provisioning
                            rmeyer SupportEmployee

                            You will need to open a case with LANDESK Support to get help with this.

                            • 12. Re: Inject Script fails in provisioning
                              v.taillet Apprentice

                              Bonjour,

                               

                              Ce n'est peut-être pas la solution, mais injecte plutôt ton unattend.xml ici : C:\Windows\Panther\Unattend.xml (il faut une tâche de création de C:\Windows\Panther avant) plutôt qu'à la racine du C:\

                              • 13. Re: Inject Script fails in provisioning
                                Rookie

                                Not sure if this will help anyone but I noticed I got the error "Inject Script Failed" and what I did to fix it .. Under Post-OS installation - Ensure the OS partition is mounted as C: - Action type - Auto assign partitions .. is checked   when I had Create Default partitions checked the Inject Script Failed.

                                1 of 1 people found this helpful
                                • 14. Re: Inject Script fails in provisioning
                                  yexp Rookie

                                  it's the best way, it can work.  Many thanks!