How to prevent installation of application on system . using cmd or powershell or service?

2024-05-02T10:04:32.0233333+00:00

Why disabling/stopping windows MSI service wont stop installing/uninstalling of the applications?

Windows for business | Windows Server | User experience | PowerShell
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

3 answers

Sort by: Most helpful
  1. Marcin Policht 50,335 Reputation points MVP Volunteer Moderator
    2024-05-02T10:09:57.9433333+00:00

    Because not all applications are installed via MS Installer. There are many other ways to install apps on Windows.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. Anonymous
    2024-05-02T14:56:08.6266667+00:00

    Hello,

    Changing the local group policy editor can prevent the system from automatically installing software. You can try the following steps:

    1. Press Win+R, enter gpedit.msc and press Enter to open the Local Group Policy Editor.
    2. Navigate to: Computer Configuration\Administrative Templates\Windows Components\Push Installation in Group Policy Editor.
    3. Double-click to open the "Turn off push installation service" setting and configure it to "Enabled" and click "Apply" > "OK".

    User's image

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Best regards

    Zunhui


  3. Marcin Policht 50,335 Reputation points MVP Volunteer Moderator
    2024-05-03T08:59:41.06+00:00

    Use either Software Restriction Policy https://learn.microsoft.com/en-us/windows/win32/msi/windows-installer-and-software-restriction-policy or AppLocker https://learn.microsoft.com/en-us/windows/security/application-security/application-control/windows-defender-application-control/applocker/windows-installer-rules-in-applocker


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


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.