Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Packaged COM Cannot Be Used from Elevated Context #6042

Open
Labels
Area-COM-APIIssue related to COM API Issue-BugIt either shouldn't be doing this or needs an investigation. PowerShellIssue related to WinGet PowerShell Module or cmdlet
@shmuelie

Description

Relevant area(s)

COM API, PowerShell Module

Relevant command(s)

No response

Brief description of your issue

When using the COM API (or the PowerShell Module that uses it under the hood), if the calling context is elevated the call will fail as the elevated context does not see the COM registration.

Steps to reproduce

Call a winget powershell cmdlet from an elevated PowerShell instance.

Expected behavior

API calls to succeed

Actual behavior

API call fails

Environment

Windows: Windows.Desktop v10.0.26564.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.28.190.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-COM-APIIssue related to COM API Issue-BugIt either shouldn't be doing this or needs an investigation. PowerShellIssue related to WinGet PowerShell Module or cmdlet

    Type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /