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
I'm currently setting up an software deployment tool in our company.
I'd like to use winget to install the newest software and deploy the configuration (if needed) of the requested software by script, but actually that doesn't matter right now.
If I'm the end user and start a installation, the context of the installation will be run by the "NT AUTHORITY\System" user. To get a normal and good connection to the Domain I'm using, I'm starting a PSSession with a specific user. (The user is a local Administrator)
This is a part of the design of MSIX packages. We're developing a separate "in process" COM interface for remote execution under the system account. This is related to:
Brief description of your issue
Hello,
I'm currently setting up an software deployment tool in our company.
I'd like to use winget to install the newest software and deploy the configuration (if needed) of the requested software by script, but actually that doesn't matter right now.
If I'm the end user and start a installation, the context of the installation will be run by the "NT AUTHORITY\System" user. To get a normal and good connection to the Domain I'm using, I'm starting a PSSession with a specific user. (The user is a local Administrator)
After that I run the "Change-Active-User" in my main script. To now run the Installation of winget remotely I use the "Invoke-Command" cmdlet:
After all this code, winget is installed.
Steps to reproduce
Install Win-Get as Appx Package, and try to run it through a pssession or a invoke-command or even with the NT Authority\SYSTEM User.
Expected behavior
Now the problem is, If I am the normal Administrator logged in from my test-domain (DOMAIN-NET.int) I can normally run the winget command:
Actual behavior
If I try to run it in the SYSTEM-User context, I get following error:
![image](https://user-images.githubusercontent.com/118960441/203713838-b1a3fe6a-eca2-4b8c-a9d6-3d0a665f991a.png)
When I Enter the opened PSSession and am logged it with the domain user (as local admin), I get following error:
And yes the user is local administrator
![image](https://user-images.githubusercontent.com/118960441/203717100-f3421082-40c6-4d33-978e-1e3e0e6b31ee.png)
Environment
The text was updated successfully, but these errors were encountered: