Solved

Installed softare without GUID

Posted on 2016-10-18
6
65 Views
Last Modified: 2016-10-20
Hi All,

We have an installed software on our PC's that don't have a guid. This means that when we try uninstall the product using powershell:

$app = Get-WmiObject -Class Win32_Product | Where-Object {
    $_.Name -match "Software Name"
}
$app.Uninstall()

the uninstall fails as it cannot find the product.

Is there a way we can manually assign a guid to the installed software?

also is there another way we can uninstall the product?

thank you in advance
0
Comment
Question by:Kay
6 Comments
 
LVL 17

Expert Comment

by:xtermie
ID: 41848322
0
 
LVL 24

Expert Comment

by:Dr. Klahn
ID: 41849310
Use the freeware version of Revo uninstaller in hunter mode.
0
 
LVL 19

Expert Comment

by:deroode
ID: 41849581
If the software was not installed using an msi package you won't be able to uninstall it with $app.Uninstall(); Try locating the software in "Programs and Features",

If it can be found there you can find the uninstall string in the registry somewhere under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall or HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
0
[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

 

Author Comment

by:Kay
ID: 41851801
we have to uninstall it from 400 machines
0
 

Author Comment

by:Kay
ID: 41851802
therefore we are trying to automate this process
0
 
LVL 19

Accepted Solution

by:
deroode earned 500 total points
ID: 41851808
When you find the uninstall string in the registry, go from there; If it is an MSI you can uninstall silent with msiexec /x {productcode} /QB, if the product has it's own uninstaller try to figure out if it has any command line options.

Can you give a hint about what software you are trying to uninstall?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article will help you understand what HashTables are and how to use them in PowerShell.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now