Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows Server 2022 / How to Detect Which User Installed or Removed a Program on Windows

June 23, 2025

How to Detect Which User Installed or Removed a Program on Windows

In large enterprise environments with multiple administrators, it is often necessary to determine which user installed or uninstalled a program on a specific Windows server or workstation. Let’s explore how to extract information from Windows Event Viewer logs to identify the specific user who initiated the installation or removal of a program.

When you install or uninstall classic Windows apps using the MSI installer, the corresponding MsiInstaller events are written in the Event Viewer log.

  • 11707 – event code of the successful installation of an MSI app.
  • 11724 – MSI app removal event

Open the Event Viewer event log console (eventvwr.msc) and filter for events with IDs 11707 and 11724 in the Application log. A list of program installation and removal events will appear. The name of the program that was installed or removed is included in the event description. For example:

Product: Zabbix Agent 2 (64-bit) -- Removal completed successfully.
Product: 7-Zip 24.09 (x64 edition) -- Installation completed successfully.

The name of the user who installed or uninstalled the app can be found in the “User” property of the event.

Software installation / removal events in Windows (ID 11707 and 11724)

You can use PowerShell to quickly find all installation and uninstallation events for a specific program. The following script will output all Zabbix agent installation or removal events on the server, including the names of the users who performed these actions.

Get-WinEvent -FilterHashtable @{LogName="Application"; ID=11707,11724; ProviderName='MsiInstaller'} | Where-Object { $_.Message -like '*Zabbix*' } | Select TimeCreated, @{Name='Username'; Expression={(New-Object System.Security.Principal.SecurityIdentifier($_.userid)).Translate([System.Security.Principal.NTAccount]).Value}}, Message

PowerShell script: find out which user removed or installed an app in Windows

Since the userid field contains the user’s SID, the script converts it to an account name.

The Reliability Monitor also provides information about program installation and removal events. This post provides a detailed explanation of how to view the installation and removal history of apps in Windows.

0 comment
2
Facebook Twitter Google + Pinterest
Questions and AnswersWindows 11Windows Server 2022
previous post
Encrypt Any Client-Server App Traffic on Windows with Stunnel
next post
Best Practices: Changing the IP Address on a Domain Controller

Related Reading

Adding Multiple Alternate DNS Names for a Windows...

September 3, 2024

Exclude a Specific User or Computer from Group...

March 16, 2025

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

Fix: The referenced assembly could not be found...

March 25, 2025

Collecting Windows and Active Directory Event Logs with...

February 7, 2025

Run PowerShell Scripts on a Schedule with Task...

October 3, 2024

Network Monitor: Capture and Analyze Network Traffic on...

November 12, 2024

Send a WhatsApp Message from the CommandLine (Shell)

December 3, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Encrypt Any Client-Server App Traffic on Windows with Stunnel

    June 12, 2025
  • Failed to Open the Group Policy Object on a Computer

    June 2, 2025
  • Remote Desktop Printing with RD Easy Print Redirection

    June 2, 2025
  • Disable the Lock Screen Widgets in Windows 11

    May 26, 2025
  • Configuring Windows Protected Print Mode (WPP)

    May 19, 2025
  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Fix: Windows Update Tab (Button) is Missing from Settings
  • Fix: Your IT Administrator Has Limited Access to Virus & Threat Protection
  • Permanently Disable Driver Signature Enforcement on Windows 11
  • How to Add or Reinstall the Microsoft PDF Printer on Windows
  • Fix: Multiple Connections to a Server or Shared Resources by the Same User
  • Find a Linux Process Listening on a Specific Port
  • Uninstalling Windows Updates via CMD/PowerShell
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top