You can try to use the Win32_Product CIM class’s Uninstall method.

$Prod = Get-WMIObject -Classname Win32_Product | Where-Object Name -Match  'PrintForm 2018 CS'
$Prod.UnInstall()

or

Get-CimInstance -Classname WIn32_Product | Where-Object Name -Match 'PrintForm 2018 CS' | 
  Invoke-CimMethod -MethodName UnInstall

if you want to get fancier, you can use the -Filter parameter when getting the WMI object and filtering at source - left as an exercise for the reader.

Answer from DoctorDNS on community.spiceworks.com
🌐
BigFix
forum.bigfix.com › content authoring
Uninstalling application using wmic command - Content Authoring - BigFix Forum
October 4, 2023 - I created a fixlet to uninstall a software from windows machine the command works from the command line but fails to uninstall the application through the fixlet. Command line: wiathidden cmd /C wmic product where “name like ‘%JAVA%’” ...
Discussions

WMIC software uninstall file in use prompt bypass
Hi, I’m trying to uninstall Adobe products on a select group of user’s PCs using this script. “wmic product where “name like ‘Adobe Acrobat Reader%’” call uninstall /nointeractive” The script works, I’ve tried it on a few test PCs. However, while uninstalling, a box pops up ... More on community.spiceworks.com
🌐 community.spiceworks.com
7
1
April 10, 2024
Command line solution for removing apps not listed in wmic product, installed in user's appdata
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall I'll leave the rest for the reader. :) More on reddit.com
🌐 r/sysadmin
7
0
October 13, 2022
WMIC Command For Uninstall An Application Or Software
Dear, I Want To Know The WMIC Command Line For Uninstall The Software Or Application Which Is Already Installed In User System. I Had Tried My Commands Like : wmic:root\cli>process where name='vlc.exe' call uninstall For Example. But Return An Error… More on learn.microsoft.com
🌐 learn.microsoft.com
1
27
August 22, 2016
Using WMIC in a batch file to uninstall a program - Stack Overflow
I am writing a script to uninstall a program. I am utilizing WMIC to do this. When I run the script, it stops immediately after the wMIC command is run. When run it manually everything works fine. My More on stackoverflow.com
🌐 stackoverflow.com
🌐
4iT
4it.com.au › knowledge base › uninstall windows program silently using the command line (wmic)
Uninstall Windows Program Silently Using the Command Line (WMIC) | 4iT
Here are the instructions for uninstalling a program on a windows computer that was installed using the Windows Installer. The first step is to find out the names of installed programs on the windows computer. To do this enter the following command: wmic product get name You will then see a ...
Top answer
1 of 8
21

Every program that properly installs itself according to Microsoft's guidelines makes a registry entry in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall. Usually, the key for the program will be its GUID, or else the name of the program. Within that key will be an entry called UninstallString. This contains the command to execute to uninstall the program.

If you already know ahead of time what you will be uninstalling, it should be easy enough to just put that in your batch file. It gets tricky when you try to automate that process though. You can use the reg command to get data from the registry, but it returns a lot of text around the actual value of a given key, making it hard to use. You may want to experiment with using VBscript or PowerShell, as they have better options for getting data from the registry into a variable.

2 of 8
32

You can invoke the correct uninstaller without knowing the GUID, etc. by using WMIC.

To see a list of the names of the programs as known internally by Windows:

wmic product get name

Look for your product name. It probably matches the one listed in the "Programs and Features" control panel, but not always.

Then you can use

wmic product where name="_my_product_name" call uninstall

to perform the uninstall, which AFAIK should be silent (it has been in my experience, but try it before you bet the farm on that. Silence may depend on how your installer/uninstaller was built).

See here for more:

  • WMIC: the best command line tool you've never used (overview of WMIC with lots of cool commands described)
  • Windows: Uninstall an Application from the Command Line (the specific recipe)

There's also reference documentation for WMIC on microsoft.com.

🌐
Action1
action1.com › home › blog › how to uninstall software remotely using wmi on windows?
How to Uninstall Software Remotely Using WMI on Windows? | Action1
March 21, 2025 - In the command window that opens, type “wmic” and press “Enter.” · Thus, we launched a console utility for interacting with the WMI structure on a local or remote computer. Now using the WMI Query Language (WQL), you can execute various WMI commands. For example, we get the entire list of installed software on a remote computer.
🌐
Reddit
reddit.com › r/sysadmin › command line solution for removing apps not listed in wmic product, installed in user's appdata
r/sysadmin on Reddit: Command line solution for removing apps not listed in wmic product, installed in user's appdata
October 13, 2022 -

I can utilize SCCM to run commands I need to under the user's context, but some software doesn't show using wmic product, and cannot be uninstalled using powershell uninstall package.

However, these programs still show for the user in add/remove programs and uninstall from there when performed manually. I would just tell them to do this, but we cannot rely on user compliance and must ensure it gets done ourselves.

I imagine you could utilize some sort of registry query that tells you where to find an uninstaller, but I imagine that isn't even assured, not to mention some uninstallers or setup files requiring switches to function properly. I could also just delete the apps from appdata, but that would leave taskbar icons etc behind.

Even if it's a 3rd party program that has a command line interface (portable would be better), it would be a potential solution.

Find elsewhere
🌐
How-To Geek
howtogeek.com › home › windows › how to uninstall a program on windows 10 from command prompt
How to Uninstall a Program on Windows 10 from Command Prompt
August 31, 2023 - You'll see the wmic:root\cli> prompt in the console once you run the WMIC command. This means you can now use Windows Management Instrumentation (WMI) operations. Next, you'll want a list of the programs installed on your computer. Getting this list is essential because you must provide an accurate product name to successfully execute the uninstall command.
🌐
Windows OS Hub
woshub.com › uninstall-apps-with-powershell-windows
Uninstalling Apps Using PowerShell or CMD on Windows 11 and 10 | Windows OS Hub
1 week ago - The similar PowerShell commands ... "Name = 'XXX'").Uninstall() In order to remove a program on a remote computer, add the -ComputerName option....
🌐
Quora
quora.com › How-do-I-uninstall-a-program-on-Windows-10-from-the-command-prompt
How to uninstall a program on Windows 10 from the command prompt - Quora
Open an elevated Command Prompt: ... · Uninstall by exact product name: wmic product where "name='Program Name'" call uninstall /nointeractive...
🌐
Microsoft Community Hub
techcommunity.microsoft.com › microsoft community hub › communities › products › windows › windows it pro blog
WMI command line (WMIC) utility deprecation: Next steps | Windows IT Pro blog
July 8, 2024 - There are several native WMI cmdlets that exist in PowerShell without having to install any additional software or modules. Here's an example of how you can replace a familiar WMIC query with a WMI PowerShell cmdlet. Alternatively, run the PowerShell command directly from the command prompt (given the setup has PowerShell capabilities):
🌐
NI
knowledge.ni.com › KnowledgeArticleDetails
Uninstalling NI Software if I Cannot Use Add/Remove Programs - NI
April 22, 2024 - I have a Windows operating system, but I cannot access the Add/Remove Programs from my Control Panel. Is there a way that I can remove or repair my NI software without access to the Add/Remove Programs?
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-uninstall-software-using-python
How to Uninstall Software using Python? - GeeksforGeeks
July 23, 2025 - ... Similarly, to uninstall software ... of command prompt and # passing the command as argument os.system(f'wmic product where description="{software}" uninstall')...
🌐
TechDirectArchive
techdirectarchive.com › home › windows › how to uninstall a program via command prompt in windows
How to uninstall a program via command prompt in Windows
December 30, 2023 - Here are the syntaxes (commands to perform this). wmic product where "description='program name' " uninstall
🌐
Druva
help.druva.com › en › articles › 8807451-how-to-perform-a-silent-uninstall-of-insync-client-from-a-windows-device
How to perform a silent uninstall of inSync Client from a Windows device | Druva | Documentation
This Font Software is licensed ... command to uninstall inSync Client. ​ ​ · wmic product where "name like '%%Druva inSync%%'" call uninstall /nointeractive...
🌐
MSPoweruser
mspoweruser.com › home › how-to › how to delete programs in windows 11: a step-by-step guide
How To Delete Programs In Windows 11: A Step-by-Step Guide
October 28, 2025 - Open Command Prompt as an administrator. Search for “cmd” in the Start menu, right-click on “Command Prompt,” and select “Run as administrator.” · Type wmic and press Enter.
🌐
Help Desk Geek
helpdeskgeek.com › home › how-to › how to uninstall apps that won’t uninstall in windows 10 or 11
How To Uninstall Apps That Won’t Uninstall in Windows 10 or 11
January 31, 2025 - Note the program name you want to remove from the list. Uninstall the problematic program by running the following command: product where name=” PROGRAM” call uninstall. Replace PROGRAM with the actual program name that you noted above.