Removing old .NET Framework with a PS Script silently without user interaction
I am using the KACE SMA to push a script, but i need that script to run silently without user interaction. I have tried to add /S and /QN and that doesn't seem to work, it still pops up asking the user to click yes/no on each installation.
$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match "Microsoft .NET Framework 4.5"
}
Write-Host $app.Name
Write-Host $app.IdentifyingNumber
pushd $env:SYSTEMROOT\System32
$app.identifyingnumber |% { Start-Process msiexec -wait -ArgumentList "/x $_" }
popd
1 Comment
[ + ] Show comment
-
I believe before the /x you need to add /qn - flip1001 1 year ago
Answers (0)
Please log in to answer
Be the first to answer this question