AppxManifest.xml location?

Duchemin, Dominique 2,006 Reputation points
2022-08-11T01:10:39.92+00:00

Hello,

> PS C:\Windows\SystemApps> ###Install Enpoint Protection Client###

Get-AppXPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"}

Add-AppxPackage : Cannot find path 'C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml' because it does not exist. At line:3 char:38

  • ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Win ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\Windows\Syst...ppXManifest.xml:String) [Add-AppxPackage], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

...

Add-AppxPackage : Cannot find path 'C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml' because it does not exist. At line:3 char:38

  • ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Win ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\Windows\Syst...ppXManifest.xml:String) [Add-AppxPackage], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

Add-AppxPackage : Cannot find path 'C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml' because it does not exist. At line:3 char:38

  • ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Win ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\Windows\Syst...ppXManifest.xml:String) [Add-AppxPackage], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

PS C:\Windows\SystemApps>

Where is the AppXManifest.xml file in Windows Server 2016? 2008? 2012? 2019? I found it on Windows 10 workstation but did not for the servers...

> ###Install Enpoint Protection Client###

Get-AppXPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"}

Any permanent location for the servers?

For a simple command it works:

> PS C:\Windows\system32> Get-AppXPackage -AllUsers

Name : winstore Publisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : Neutral ResourceId : neutral Version : 1.0.0.0 PackageFullName : winstore_1.0.0.0_neutral_neutral_cw5n1h2txyewy InstallLocation : C:\Windows\WinStore IsFramework : False PackageFamilyName : winstore_cw5n1h2txyewy PublisherId : cw5n1h2txyewy PackageUserInformation : {S-1-5-21-2681147498-3025511139-3313259523-1024 [ruser018]: Installed, S-1-5-21-2681147498-3025511139-3313259523-1025 [ruser019]: Installed, S-1-5-21-2681147498-3025511139-3313259523-1026 [ruser020]: Installed, S-1-5-21-2681147498-3025511139-3313259523-1027 [ruser021]: Installed...} IsResourcePackage : False IsBundle : False IsDevelopmentMode : False

Name : windows.immersivecontrolpanel Publisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : Neutral ResourceId : neutral Version : 6.2.0.0 PackageFullName : windows.immersivecontrolpanel_6.2.0.0_neutral_neutral_cw5n1h2txyewy InstallLocation : C:\Windows\ImmersiveControlPanel IsFramework : False PackageFamilyName : windows.immersivecontrolpanel_cw5n1h2txyewy PublisherId : cw5n1h2txyewy PackageUserInformation : {S-1-5-21-2681147498-3025511139-3313259523-1024 [ruser018]: Installed, S-1-5-21-2681147498-3025511139-3313259523-1025 [ruser019]: Installed, S-1-5-21-2681147498-3025511139-3313259523-1026 [ruser020]: Installed, S-1-5-21-2681147498-3025511139-3313259523-1027 [ruser021]: Installed...} IsResourcePackage : False IsBundle : False IsDevelopmentMode : False

PS C:\Windows\system32>

Thanks, Dom

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,681 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 39,796 Reputation points
    2022-08-11T14:51:02.023+00:00

    Hello,

    This may seem some corruption of the Package, please try the next:

    Make sure to Run PowerShell as Administrator

    1. Run PowerShell(Admin)
      Copy and paste the command below then press Enter

    Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage

    Restart your computer

    1. Run PowerShell(Admin)
      Copy and paste the commands below one at a time then press Enter

    Set-ExecutionPolicy Unrestricted

    Press Y

    Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

    Restart your computer

    -----------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Duchemin, Dominique 2,006 Reputation points
    2022-08-14T00:33:00.04+00:00

    Apparently in Windows Server 2016 & 2019 there are some differences from Windows 10 ... still in progress

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.