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