To extract the GUID for an application, you can follow these steps:
- Install the application on a PC.
- Open a Windows PowerShell: You can do this by searching for "PowerShell" in the Windows search bar
- Run the following command:
Get-CimInstance -ClassName Win32_Product | Sort-Object -Property Name | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize
This command will list all installed programs along with their identifying numbers (GUIDs). Look for the application you want to uninstall, and note down its identifying number (GUID).
Now you have the GUID for the application, which you can use to create an uninstall command.
Example: msiexec /x "{5B0C7A0B-0B5A-4552-8E06-0CC630F2C50A}" /qn
0 comments:
Post a Comment