You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really related to our hero, but I am pretty sure someone came across this issue when automating the installation of MSIX packages under windows (using powershell commands).
Assume we have generated a MSIX package and want to automate its installation (and update) using a powershell script called by a system service: example a puppet agent running as a window service.
Typically, the recipe for install woud use the Add-AppxPackage cmdlet inside a powershell script.
Assuming we're trying to install an unsigned package <MSIX_PACKAGE_NAME>.msix under Windows 11:
Windows PowerShell transcript start
Start time: ******
Username: WORKGROUP\SYSTEM
RunAs User: WORKGROUP\SYSTEM
[--snip--]
add-appxpackage : Deployment failed with HRESULT: 0x80073CF9, Install failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CF9)
Deployment Add operation rejected on package <MSIX_PACKAGE_NAME>.msix install
request because the Local System account is not allowed to perform this operation.
I understand it's a security policy for the SYSTEM account and not sure yet how this can be solved, but It would be great if someone can share his experience for achieving such task.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Not really related to our hero, but I am pretty sure someone came across this issue when automating the installation of MSIX packages under windows (using powershell commands).
Assume we have generated a MSIX package and want to automate its installation (and update) using a powershell script called by a system service: example a puppet agent running as a window service.
Typically, the recipe for install woud use the Add-AppxPackage cmdlet inside a powershell script.
Assuming we're trying to install an unsigned package
<MSIX_PACKAGE_NAME>.msix
under Windows 11:Here is a log of the script execution
I understand it's a security policy for the
SYSTEM
account and not sure yet how this can be solved, but It would be great if someone can share his experience for achieving such task.Beta Was this translation helpful? Give feedback.
All reactions