Skip to content

[Bug]: Running Get-WGPath delivers wrong path in System Context #14

@AbsoluteBlack0

Description

@AbsoluteBlack0

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

  • 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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions