Trying to run an exe on command line.

Rick Someone 411 Reputation points
2021-11-22T16:25:56.777+00:00

I have an exe that, on a pc, I can run in a RUN line with /silent at the end and it kicks right off.

I cannot get it to work in MDT. I put it in a batch file to run silently....and tried it just as an exe.
The Installation Progress box comes up, it says it's Running Action: my.exe but either method,
it just sits and doesn't ever take off. I have to click on the screen several times before the TS moves on.

Other jobs run, then eventually my exe runs. I added an AutoIt script to do a few clicks on the screen but
it still doesn't kick off unless I click somewhere.
However, it does run properly from the RUN box on the pc.

I'm not sure what I need to do to get it to run right away, and without any clicks.
I know for a fact that exe /silent is the correct switch.

Maybe I'm not adding it as a Command line job correctly. I have:

cmd /c "C:\users\administrator\desktop\win8\folder\setup.exe" /silent

Windows for business Windows Client for IT Pros Devices and deployment Set up, install, or upgrade
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 49,311 Reputation points Microsoft External Staff
    2021-11-23T06:07:15.693+00:00

    Hi, @Rick Someone
    Thank you for posting in Microsoft Q&A forum.

    Have we tried to test other exe application with the same command line? We may need to firstly confirm the issue is related to application itself or MDT?

    And have we tried to add applications with below guidance?
    https://learn.microsoft.com/en-us/windows/deployment/deploy-windows-mdt/create-a-windows-10-reference-image#add-applications


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.