Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Multiple Software Uninstaller Script

$
0
0

Hi,

I have created uninstall Powershell script for multiple software , 

So, i want to know which command capture background process and where i have to put. (log file or output file ) 

# Remove all tool 
$programs = @(“app1","app2","app3","app4")
foreach($program in $programs){
$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match “$program”
}
if ($app -ne $Null) {
$app.Uninstall()
}
}

thanx



Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>