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 am running a system context Powershell session. Get-WingetPath delivers the wrong winget.exe location because it expects nt-authority. Culture is german, so the system answers with nt-autorität as result of whoami.
Log is in additional informations.
Expectation
No response
Additional Information
PS C:\Windows\system32> Get-WGPath
AUSFÜHRLICH: [14:10:07.3657127] Starting Get-WGPath
AUSFÜHRLICH: [14:10:07.3827148] Running as nt-autorität\system
AUSFÜHRLICH: [14:10:07.3837279] Using user default location
C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\Winget.exe
AUSFÜHRLICH: [14:10:07.3867134] Ending Get-WGPath
PowerShell version
5.1
Platform
Windows 10 Pro or Enterprise
Additional Checks
You are using the latest version of this module.
You have read this repository's README file.
You have read full help and examples for the command you are having problems with.
You are running PowerShell in an elevated session.
You are running in a traditional PowerShell console or Windows Terminal
The text was updated successfully, but these errors were encountered:
I am trying to write a proactive remediation script for intune which installs / uninstalls / updates a custom list of apps. At this point I am trying to run it in system context.
For testing purposes PSTools: PsExec.exe -s -i cmd.exe
I was trying to run plain winget in those scripts but as of now I could not find out why my winget list and winget upgrade calls did not deliver output.
It is more like a experimental learning process if I can use winget this way or if I need to stick to traditional Win32 deployment.
Describe the problem
I am running a system context Powershell session. Get-WingetPath delivers the wrong winget.exe location because it expects nt-authority. Culture is german, so the system answers with nt-autorität as result of whoami.
Log is in additional informations.
Expectation
No response
Additional Information
PS C:\Windows\system32> Get-WGPath
AUSFÜHRLICH: [14:10:07.3657127] Starting Get-WGPath
AUSFÜHRLICH: [14:10:07.3827148] Running as nt-autorität\system
AUSFÜHRLICH: [14:10:07.3837279] Using user default location
C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\Winget.exe
AUSFÜHRLICH: [14:10:07.3867134] Ending Get-WGPath
PowerShell version
5.1
Platform
Windows 10 Pro or Enterprise
Additional Checks
The text was updated successfully, but these errors were encountered: