Ciao Ragazzi
Qualcuno di vuoi mi sa spiegare perche nella rete si trova questo commando , e tutti attestano che funziona solo a me non va, se qualcuno mi puo aiutare, mi farebbe un immenso piacere :)
$app =
Get-WmiObject -Class Win32_Product |
Where-Object {$_.Name -match "nome dell Software" }
$app.Uninstall()
Errore:
Method invocation failed because [System.Object[]] doesn't contain a method nam
ed 'uninstall'.
At line:1 char:15
+ $app.uninstall <<<< ()
+ CategoryInfo : InvalidOperation: (uninstall:String) [], Runtime
Exception
+ FullyQualifiedErrorId : MethodNotFound
Grazie in anticipo per le vostre risposte...