Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing A/V fails #219

Open
No-good-deed-goes-unpunished opened this issue Feb 13, 2025 · 0 comments
Open

Removing A/V fails #219

No-good-deed-goes-unpunished opened this issue Feb 13, 2025 · 0 comments

Comments

@No-good-deed-goes-unpunished

What affects the bug ?

Run the removal from the batch file script_run.bat from an elevated command prompt.

When does this occur?

Every time the script is run, specifically RemoveSecHealthApp.ps1

In which version of Windows does this issue happen ? Write version complete.

Windows 11 24H2 26100.1742

How do we replicate the issue?

Just run the script.

Expected behavior (if you have any solution write here.)

Windows Defender to be completely removed.

Other Comments

Script outputs the following powershell errors.

Microsoft.SecHealthUI_8wekyb3d8bbwe
remove-appxprovisionedpackage : Removal failed. Please contact your software vendor.
At I:\PostInstall\RemoveSecHealthApp.ps1:11 char:5

  • remove-appxprovisionedpackage -packagename $PackageName -online - ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Remove-AppxProvisionedPackage], COMException
    • FullyQualifiedErrorId : Microsoft.Dism.Commands.RemoveAppxProvisionedPackageCommand

Microsoft.SecHealthUI_1000.26100.1.0_x64__8wekyb3d8bbwe
remove-appxpackage : Access is denied.
Deployment Remove operation with target volume C: on Package Microsoft.SecHealthUI_1000.26100.1.0_x64__8wekyb3d8bbwe
from: failed with error 0x80070005. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
At I:\PostInstall\RemoveSecHealthApp.ps1:19 char:5

  • remove-appxpackage -package $PackageFullName -allusers >''
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], UnauthorizedAccessException
    • FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.Remove
      AppxPackageCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant