MDT error in deploy app

Alessandra Priori 6 Reputation points
2021-09-22T15:13:46.463+00:00

Hi
I try to deploy Kaspersky network agent with MDT and at the end of the task I recived this message:
Application NetAgent 13 returned an unexpected return code: 4

I found that the return code means: The system cannot open the file.

Below is the log

Entry: {b10dc7d2-b72b-4a68-9bae-d4d7bbdf27f6}
Name: NetAgent 13

Validating connection to \10.158.252.168\DeploymentShare$\Applications\NetAgent 13
Mapping server share: \10.158.252.168\DeploymentShare$
Already connected to server 10.158.252.168 as that is where this script is running from.
Change directory: \10.158.252.168\DeploymentShare$\Applications\NetAgent 13
Run Command: \10.158.252.168\DeploymentShare$\Tools\X64\bddrun.exe NetAgent_13.1.0.8324.exe /S
ZTI installing application
Event 41031 sent: ZTI installing application
About to run command: \10.158.252.168\DeploymentShare$\Tools\X64\bddrun.exe NetAgent_13.1.0.8324.exe /S
Command has been started (process ID 3600)
Return code from command = 4
Application NetAgent 13 returned an unexpected return code: 4
Event 41034 sent: Application NetAgent 13 returned an unexpected return code: 4
Property InstalledApplications001 is now = {3b2f8836-2f65-4207-9a2a-b32e7e87480f}
Property InstalledApplications002 is now = {c6c2be35-ed29-4cba-9715-5fb357c6b882}
Property InstalledApplications003 is now = {566d9bad-dd91-4c9b-8b66-83a1bdec8e78}
Property InstalledApplications004 is now = {2cda9b5c-7950-44f2-962e-26b07956b05e}
Property InstalledApplications005 is now = {c74ec736-c592-452a-b192-f850d3de48b0}
Property InstalledApplications006 is now = {0d7f6276-e25d-490d-8517-5e45d6648fc0}
Property InstalledApplications007 is now = {b10dc7d2-b72b-4a68-9bae-d4d7bbdf27f6}

If I open prompt as administrator and I install the Network agent on client with the follow comand line
NetAgent_13.1.0.8324.exe /S
all works.
Any suggest?
Thanks

Alessandra

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
833 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 40,881 Reputation points Microsoft Vendor
    2021-09-23T06:50:49.43+00:00

    Hi, @Alessandra Priori
    Thank you for posting in Microsoft Q&A forum.

    Yes, the return code 4 means: The system cannot open the file. The issue may be related to the permissions.
    Do you deploy the app during an OS deployment or just deploy the app by MDT?
    Can other applications be deployed normally through MDT?


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments