Install workflow manager using DSC declarative configuration


i trying install workflow manager using below dsc powershell script.

configuration c_pkg_wfinstall

{

    node $allnodes.nodename

    {

        package c_pkg_wfinstall

        {

            ensure = "present"

            name = "workflow manager client 1.0"

            path = "c:\workflowmanagerfiles\bin\webpicmd.exe"

            arguments = "/install /products:'workflow manager client 1.0' /xml:'c:/workflowmanagerfiles/feeds/latest/webproductlist.xml' /log:'c:/users/backup/workflow.txt' /accepteula"

            productid = "a5abaf5f-b5b6-44b3-b69f-2e13dc60fc9f"

        }

    }

}

$configdata = @{

    allnodes = @(

         @{

                  nodename = "chn-aero-vm28";             

          }

    )

}

c_pkg_wfinstall -configurationdata $configdata –verbose

start-dscconfiguration -wait -force -verbose -path .\c_pkg_wfinstall

and below error

powershell provider msft_packageresource  failed execute set-targetresource functionality error message: return code -1 not expected. configuration not

correct

    + categoryinfo          : invalidoperation: (:) [], cimexception

    + fullyqualifiederrorid : provideroperationexecutionfailure

but while installing command prompt window install below list successfully
identifyingnumber : {a5abaf5f-b5b6-44b3-b69f-2e13dc60fc9f}
name              : workflow manager client 1.0

identifyingnumber : {04a7199e-565d-4654-88a3-80a9a7baddd9}
name              : workflow manager 1.0

identifyingnumber : {f438c511-5a64-433e-97ec-5e5343da670a}
name              : service bus 1.0

i tried above 3 product ids, not working.

hi raghavendra,

please check "dsc operational log" in event viewer , find more detailed error message to troubleshoot.

please note lcm runs system, , make sure local package resource on right folder path.

i recommend can also try run command localsystem account, , check if there has same issue.

to run command sytem account, please refer "psexec.exe -i -s cmd.exe".

if there else regarding issue, please feel free post back.

if have feedback on our support, please click here.

best regards,

anna wang

technet community support


please remember mark replies answers if , unmark them if provide no help. if have feedback technet support, contact tnmff@microsoft.com



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file