A community member has associated this post with a similar question:
Where exactly I should provide subscription and provide details in the below JSON file

Only moderators can edit this content.

Executing .exe file using PowerShell

Varma 1,495 Reputation points
2024-02-03T16:56:13.5333333+00:00

I Have .exe file in the c:\temp\ folder. ( I could make this one using powershell command provided in the custamizer during image template creation ) and I want to call that .exe file available in the C:\temp\install.exe file using PS command , what is the exact command to do that. Please suggest

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,366 Reputation points Microsoft Employee Moderator
    2024-02-03T17:13:35.2933333+00:00

    Hello Varma

    Below will be the code

    $path = "C:\temp\install.exe"

    Start-Process -FilePath $path

    Regards,

    Shiva.