winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Unable to accept Terms of Transaction remotely

Open ExodoPlex opened this issue 2 years ago • 0 comments

Brief description of your issue

When attempting to run winget for the first time; winget prompts to accept Terms of Transaction stating the reason: The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "AB"). On a local machine, you type 'y' and hit enter. However, when running remotely winget does not wait for the input response and simply returns the prompt reporting error: 0x8a150042: Error reading input in prompt

Steps to reproduce

Execute winget remotely on a machine that has not run winget previously using either PowerShellRemoteSession or a PowerShell script.

Expected behavior

Enter [Y] or [N] to answer input prompt and input is accepted.

Actual behavior

winget does not wait for the input response and simply returns the prompt reporting error: 0x8a150042 : Error reading input in prompt

Environment

Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2364
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

ExodoPlex avatar Jan 05 '23 22:01 ExodoPlex