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

Add-AppxPackage of sideload app does not work for standard user using WinRM (Chef) #8148

jeremy-qik opened this Issue Oct 30, 2018 · 2 comments


None yet
2 participants

jeremy-qik commented Oct 30, 2018

Sorry if this is the wrong place, I created an issue chef/chef#7765 but I am not sure its an issue with Chef. I am not very familiar with Powershell sorry, so I am unable to replicate without Chef (If I knew how it would be handy to try and replicate with pure WinRM).

Steps to reproduce

In Chef

cd C:/Test 
Add-AppxPackage Example_1.0.0.0_x64.appx -DependencyPath "Dependencies\\x64\\A.appx","Dependencies\\x64\\B.appx","Dependencies\\x64\\C.appx" 

This is trying to install an appx for a standard user. I believe Chef uses WinRM to run the commands.

Expected behavior

App installs. Testing the command when physically logging in as the standard user and running powershell, it does work (appx installs). 
get-appxpackage -allusers -name *example* 
(result is empty) 

Actual behavior

Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer. Contact Microsoft Customer Support Services. 

Environment data

Name Value 
---- ----- 
PSVersion 5.1.17134.228 
PSEdition Desktop 
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} 
BuildVersion 10.0.17134.228 
CLRVersion 4.0.30319.42000 
WSManStackVersion 3.0 
PSRemotingProtocolVersion 2.3 

Additional Notes

I have tried everything I can think of, the only thing that works is starting another powershell script as the user (see the ticket on Chef). Please see chef/chef#7765 for more details.


This comment has been minimized.


iSazonov commented Oct 31, 2018

I think you should report on UserVoice site


This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment