Forum Discussion
maysaribeiro
Apr 12, 2021Copper Contributor
run Add-AppPackage using user system
I have a service that performs some processes and can even be run installation commands. This service is performed by the local system user (SID S-1-5-18). So I sent the command below for the ser...
David_Alvarez
Oct 26, 2021Copper Contributor
maysaribeiro I'm pretty sure it's because Add-AppxPackage installs the application into the profile of the account running the command, and Local System does not have a regular user profile.
My organization needed to apply updates for Windows Store Appx applications, and we do not have a Windows Store. Instead, I used MECM to stage the files on my org's computers, then ran PSExec with an administrator account to start a PS script that installs the updates.
I've been meaning to look into using Add-AppxProvisionedPackage instead, but haven't had the time.
If you have any additional information, I'd be glad to hear it.