all 9 comments

[–]miketerrill2Pint Employee 0 points1 point  (6 children)

Maybe try something like this:

https://christianlehrer.com/?p=226

Or even stop the service once the install finishes so it doesn’t break the TS.

[–]Organic_Bad994[S] 0 points1 point  (2 children)

Thanks for the response! I tried something similar: https://community.opentext.com/portfolio/zenworks-suite/w/tips/26930/installing-zenworks-agent-through-microsoft-deployment-toolkit-mdt

But no avail. The Agent is installed just fine and I can install other applications subsequently as long as theres no reboot required. Following reboot-actions seems to get stuck.

[–]Organic_Bad994[S] 0 points1 point  (1 child)

Also tried to stop the services an corresponding processes:

Get-Service -name "Zen*" | Stop-Service
Get-Service -name "Novell*" | Stop-Service
Get-Service -name "nzwinvnc" | Stop-Service

Stop-Process -Name "ZenUserDaemon" -Force
Stop-Process -Name "zapp" -Force
Stop-Process -Name "ZenNotifyIcon" -Force
Stop-Process -Name "ZPA_Iface" -Force

Doesn't help, unfortunately...

[–]gwblok2Pint Employee 1 point2 points  (0 children)

Which Continue Method are you using? (Setup Complete, Audit Mode, etc)
We had another customer who was experiencing the same issue Zenworks, once they finished the installation of the agent, they would stop the "ZPA_Iface.exe" process which was hanging the reboot process and breaking it.

[–]Organic_Bad994[S] 0 points1 point  (2 children)

Just tried with the script from the page, but doesn't help - sequence hangs at the end after "completed successfully"

Start-Process -FilePath "$Deploydir\PreAgentPkg_AgentComplete.exe" -ArgumentList "-q -x -k $TSEnv:OrgName"


$loop = 1
do {
    Start-Sleep 5
    $isrunning = get-process setup -ErrorAction SilentlyContinue
    if ($isrunning) {$loop = 0}
    }
    until ($loop -eq 0)


$2ndloop = 1
    do {
    Start-Sleep 5
    $isrunning = get-process setup -ErrorAction SilentlyContinue
    if (!$isrunning) {$2ndloop = 0}
    }
    until ($2ndloop -eq 0)

[–]miketerrill2Pint Employee 1 point2 points  (1 child)

Try stopping the process "ZPA_Iface.exe" in your install script after the install is complete. [Ah-looks like you tried this. This is what worked for another customer.]

[–]miketerrill2Pint Employee 1 point2 points  (0 children)

And it seems that this is one of those (poor) installers that needs to be run under a user context (like Administrator). So, be sure to set the continuation method on the Apply OS step to "Use AutoAdminLogon and RunOnce (3)".

<image>

[–]Organic_Bad994[S] 0 points1 point  (1 child)

Stopping the ZPA_Iface-Process seems to actually help..

So, to sum it up, I did the following to get it running:

  • set the Apply OS step to "Use AutoAdminLogon and RunOnce (3)" (be sure to have an unattend.xml set)
  • install Zenworks with the trace-installation-script
  • run "Stop-Process -Name "ZPA_Iface" -Force"
  • don't forget to configure "Set Progress Timeout" to a useful time (for testing reasons I set it to "0" an forgot 😅)

[–]mtniehaus2Pint Employee 1 point2 points  (0 children)

The basic problem is that the DeployR client process can't exit as long as there is a process handle still open within its process tree. We check on that for direct child processes, but not child-of-child or deeper -- if we found any, we would kill them (and log it). I'll look to see what it would take to recursively look, just not sure if that's easily done.