question

Balbo-9345 avatar image
0 Votes"
Balbo-9345 asked lubdhadolas-7106 answered

Silent uninstallation for .Net Framework 4.8

Hi to all,

I'm trying to uninstall .Net Framework 4.8 SILENTLY but it doesn't work.I'm using this command : Wusa /uninstall /kb:4486153.

This command unistall correctly the 4.8 version but the problem is that the uninstallation of the package is prompting user interface and i need to do od silent uninstallation.

I tried to use /q or /quiet, and event /qn but all these switch don't work to silently uninstall the Framework.

Can anyone give me the exact command line ton uninstall silently the .Net Framework 4.8?

Thanks for help.

Regards,

windows-10-generalwindows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IanXue-MSFT avatar image
2 Votes"
IanXue-MSFT answered Balbo-9345 commented

Hi,

Please check if this works for you

 $package = Dism.exe /Online /Get-Packages | Where-Object {$_ -match "KB4486153"} | ForEach-Object {$_.replace("Package Identity : ","")}
 $null = Dism.exe /Online /Remove-Package /PackageName:$package /quiet /norestart

Best Regards,
Ian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello ,
thank you for your help but i still have prompting user interface on the script that ask me to write a parameter.I just want silently uninstall the kb without doing anything.
Regards,

0 Votes 0 ·
abbodi86-0005 avatar image
0 Votes"
abbodi86-0005 answered abbodi86-0005 commented

/quiet was removed from Windows 10 Wusa /uninstall /KB command
it only works if you supplied the msu file path for the update you want to uninstall

 wusa.exe /uninstall <MSU_FILE_PATH> /quiet /norestart


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your help.DO you know how to get the MSU file path of a KB installed with a .net Framework?

0 Votes 0 ·
lubdhadolas-7106 avatar image
0 Votes"
lubdhadolas-7106 answered

I have the same problem. But I don't find the solution helpful. as what should I enter in place of MSU file path

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.