installing exe via gpo

AB123 356 Reputation points
2021-09-22T12:25:09.99+00:00

Hi all,

How do I deploy exe via gpo? I am trying to install Python but they only do EXEs now!

Help!

Windows for business Windows Client for IT Pros Directory services Active Directory
Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 15,256 Reputation points MVP Volunteer Moderator
    2021-09-22T12:29:32.767+00:00

    Hi @AB123

    You can install exe's via active directory GPO.

    Refer below link it is explained step-by-step.
    https://community.spiceworks.com/how_to/160869-how-to-install-exe-with-group-policy

    If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.
    0 comments No comments

  2. Limitless Technology 39,916 Reputation points
    2021-09-23T07:43:54.523+00:00

    Hello @AB123 ,

    The most common way would be to create a logon script that verifies the installation (installed/not installed).

    The GPO would be:
    Computer Configuration > Policies > Windows Settings > Scripts (Startup/Shutdown).

    You will need to save a script in a DFS share accessible for the clients (such as Netlogon, or other if configured) and store a BAT script.

    Examples of the script:

    IF EXIST "c:\myapp - Installed.txt" GOTO END

    \servername\sharename\<path>\installfilename.exe
    echo "Myapplication is installed on this computer" > "c:\myapp - Installed.txt"
    goto END

    :END

    Basically it checks if a TXT file is already created, if yes: it finishes, if not: proceeds with install and then write the file. You may need to check the install parameters of your app for things like /passive or /silent to run on background without user interaction.

    Hope this helps in your case,


    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.
    0 comments No comments

  3. AB123 356 Reputation points
    2021-09-22T12:54:38.02+00:00

    Hi @SUNOJ KUMAR YELURU

    Is there not a way without using a MSI converter to deploy exes?

    0 comments No comments

  4. Charles Thivierge 4,171 Reputation points
    2021-09-22T13:06:00.543+00:00

    You cannot deploy ".exe" through GPO. It has to be .msi.

    You need to convert the .exe to .msi first and then you will be able to install the .msi

    hth

    0 comments No comments

  5. AB123 356 Reputation points
    2021-09-22T14:15:25.653+00:00

    Hi @Anonymous @SUNOJ KUMAR YELURU

    I have tried to use : https://www.exemsi.com/ to convert python 3.5.2 exe into a msi but no luck! Any ideas on what I am doing wrong or if there is a better way to do it

    0 comments No comments

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.