Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Uninstall an application using Powershell

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 10-05-2007   #1 (permalink)
y.bobzhang
Guest


 

Uninstall an application using Powershell

Hello, guys,

Can I uninstall an application installed on my WindowsXP machine
using powershell? And how can I do it? Thanks very much.

Bob


My System SpecsSystem Spec
Old 10-05-2007   #2 (permalink)
Jeff
Guest


 

Re: Uninstall an application using Powershell

On Oct 6, 7:40 am, y.bobzh...@xxxxxx wrote:
Quote:

> Hello, guys,
>
> Can I uninstall an application installed on my WindowsXP machine
> using powershell? And how can I do it? Thanks very much.
>
> Bob
On Oct 6, 7:40 am, y.bobzh...@xxxxxx wrote:
Quote:

> Hello, guys,
>
> Can I uninstall an application installed on my WindowsXP machine
> using powershell? And how can I do it? Thanks very much.
>
> Bob
The Win32_Product WMI class has an Uninstall method:

$product = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -like "Lame Software"
}

$product.Uninstall()

Get-WmiObject Win32_Product has some problems on Vista that are set to
be resolved with SP1, but if you are using XP, it might work for you.

http://groups.google.com/group/micro...061dcb9ea6578a

Jeff

My System SpecsSystem Spec
Closed Thread
Update your Vista Drivers Update Your Drivers Now!!

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to uninstall stubborn (or corrupt) application? occam Vista General 3 03-02-2008 04:15 PM
Cannot uninstall any application thru Programs and Features of Vis Rani Vista installation & setup 5 01-19-2008 09:11 AM
Can't Uninstall Powershell!!! Greg P. PowerShell 7 03-20-2007 03:39 AM
How to uninstall a Windows Media Center application in Vista? M. Krantz Vista installation & setup 0 03-06-2007 05:53 PM
Can somebody help me uninstall powershell RC2? Gil Novak PowerShell 7 11-22-2006 01:40 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51