Aly*_*sin 13 powershell winget
我正在尝试远程为我们的计算机安装 sysinternals,但是当尝试安装时,winget install sysinternals --accept-source-agreements --accept-package-agreements我收到“验证/请求包获取失败:找不到商店帐户”
尝试时winget install --help我得到以下选项:
Windows Package Manager v1.1.12653
Copyright (c) Microsoft Corporation. All rights reserved.
Installs the selected package, either found by searching a configured source or directly from a manifest. By default, the query must case-insensitively match the id, name, or moniker of the package. Other fields can be used by passing their appropriate option.
usage: winget install [[-q] <query>] [<options>]
The following arguments are available:
-q,--query The query used to search for a package
The following options are available:
-m,--manifest The path to the manifest of the package
--id Filter results by id
--name Filter results by name
--moniker Filter results by moniker
-v,--version Use the specified version; default is the latest version
-s,--source Find package using the specified source
--scope Select install scope (user or machine)
-e,--exact Find package using exact match
-i,--interactive Request interactive installation; user input may be needed
-h,--silent Request silent installation
--locale Locale to use (BCP47 format)
-o,--log Log location (if supported)
--override Override arguments to be passed on to the installer
-l,--location Location to install to (if supported)
--force Override the installer hash check
--accept-package-agreements Accept all license agreements for packages
--header Optional Windows-Package-Manager REST source HTTP header
--accept-source-agreements Accept all source agreements during source operations
More help can be found at: https://aka.ms/winget-command-install
Run Code Online (Sandbox Code Playgroud)
我尝试过不同的选项,例如winget install --help--silent、--interactive 或 --override,但无济于事。
我可以直接进入 Microsoft Store 来安装它,它会询问我是否要登录或使用“不,谢谢”来安装,然后就可以了,但这不是我想要做的,我不这样做不想去每台机器上执行此操作。我可能可以尝试从这里通过 Powershell 安装的其他方法https://serverfault.com/questions/1018220/how-do-i-install-an-app-from-windows-store-using-powershell,但这又是,不是我的意图。
任何对此的帮助将不胜感激。
尚不支持此功能(截至 2022 年 1 月)。GitHub 上有一个未解决的问题:https ://github.com/microsoft/winget-cli/issues/1585
编辑:此错误已修复并可在 Windows 包管理器 1.3 预览版中使用。它将成为 1.3 版本的一部分(截至 2022 年 6 月)
Windows 包管理器在 Github 上发布。
小智 4
open the MS Store and setting. toggle purchase login to on.
| 归档时间: |
|
| 查看次数: |
12844 次 |
| 最近记录: |