Score:1

Not able to find uninstall function

in flag

Failed to call method because [Microsoft.PackageManagement.Packaging.SoftwareIdentity] does not contain a method named "uninstall".

Trying to uninstall a program called Citrix.

$myapp = Get-Package -Name 'Citrix 7.15*'
$myapp.uninstall()

Tried Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -match "*Citrix*"} - but it waits for 2 minutes and then returns nothing.

PowerShell version 5.1.14409.1005

Score:-1
in flag
Get-Package -Name 'Citrix 7.15*' | Uninstall-Package
Bhupesh Gautam avatar
in flag
It gives nothing still the software is there in the Apps and Programs list. Somehow it was found that uninstall package is not installed. Correct module PackageManagement not installed.
Bhupesh Gautam avatar
in flag
Issue closed, thanks for your support
in flag
If the answer helped you, please accept it. If the issue was something else, please post it as an answer so it can help someone else who encounters the same problem. One way or another, you must accept an answer, or your question will stay in the system as unsolved forever.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.