/build/static/layout/Breadcrumb_cap_w.png

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)

Be the first to answer this question

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ