> Install-Module Microsoft.WinGet.Client
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by
running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): a
> winget upgrade
Name Id Version Available Source
-------------------------------------------------------------------------------------------------------------------------------------
AutoHotkey AutoHotkey.AutoHotkey 2.0.0 2.0.4 winget
Git Git.Git 2.40.1 2.41.0.3 winget
Microsoft 365 Apps for enterprise - en-us Microsoft.Office 16.0.16130.20644 16.0.16529.20164 winget
搜狗输入法 13.4.0正式版 Sogou.SogouInput 13.4.0.7202 13.7.0.7991 winget
WinSCP 5.19.6 WinSCP.WinSCP 5.19.6 6.1.1 winget
Microsoft Visual C++ 2015-2019 Redistributable (x86) - 14… Microsoft.VCRedist.2015+.x86 14.28.29914.0 14.36.32532.0 winget
7-Zip 21.07 (x64 edition) 7zip.7zip 21.07.00.0 23.01 winget
VMware Horizon Client VMware.HorizonClient 8.6.0.29364 8.9.0.35399 winget
Microsoft Visual Studio Code (User) Microsoft.VisualStudioCode 1.78.2 1.81.0 winget
Beyond Compare 4 ScooterSoftware.BeyondCompare4 4.1.3.20814 4.4.6.27483 winget
PuTTY release 0.76 PuTTY.PuTTY 0.76.0.0 0.78.0.0 winget
Adobe Acrobat Reader DC Adobe.Acrobat.Reader.32-bit 22.001.20117 23.003.20244 winget
Zoom(64bit) Zoom.Zoom < 5.14.0.13888 5.15.5.19404 winget
Zoom Outlook Plugin Zoom.ZoomOutlookPlugin 5.13.10 5.14.10 winget
Microsoft Windows Desktop Runtime - 6.0.6 (x64) Microsoft.DotNet.DesktopRuntime.6 6.0.6 6.0.20 winget
Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14… Microsoft.VCRedist.2015+.x64 14.34.31938.0 14.36.32532.0 winget
网易有道翻译 Youdao.YoudaoDict 10.0.3.0 10.0.8.0 winget
17 upgrades available.
> winget upgrade --all
# or
> winget upgrade <WinGet Package>
# i.e.:
> winget upgrade Git
Found Git [Git.Git] Version 2.41.0.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.3/Git-2.41.0.3-64-bit.exe
██████████████████████████████ 58.3 MB / 58.3 MB
Successfully verified installer hash
Starting package install...
Successfully installed
> winget show Microsoft.WindowsTerminal --versions
Found Windows Terminal [Microsoft.WindowsTerminal]
Version
------------
1.16.10261.0
1.16.10231.0
1.15.3465.0
1.15.2874.0
1.15.2524.0
1.14.2281.0
1.13.11431.0
1.12.10983.0
1.12.10982.0
1.12.10733.0
1.12.10732.0
1.12.10393.0
1.12.10334.0
...
> winget search windowsterminal
Name Id Version Source
-------------------------------------------------------------------------------
Windows Terminal Preview Microsoft.WindowsTerminal.Preview 1.17.10234.0 winget
Windows Terminal Microsoft.WindowsTerminal 1.16.10261.0 winget
@ECHO OFF
start /B C:\Users\user\AppData\Local\Microsoft\WindowsApps\wt.exe
"minimizeToNotificationArea": true
// Summon the most recently used (MRU) window, to the current virtual desktop,
// to the monitor the mouse cursor is on, without an animation. If the window is
// already in the foreground, then minimize it.
{ "keys": "ctrl+1", "command": { "action": "globalSummon" } },
// Summon the MRU window, by going to the virtual desktop the window is
// currently on. Move the window to the monitor the mouse is on.
{ "keys": "ctrl+2", "command": { "action": "globalSummon", "desktop": "any" } },
// Summon the MRU window to the current desktop, leaving the position of the window untouched.
{ "keys": "ctrl+3", "command": { "action": "globalSummon", "monitor": "any" } },
// Summon the MRU window, by going to the virtual desktop the window is
// currently on, leaving the position of the window untouched.
{ "keys": "ctrl+4", "command": { "action": "globalSummon", "desktop": "any", "monitor": "any" } },
// Summon the MRU window with a dropdown duration of 200ms.
{ "keys": "ctrl+5", "command": { "action": "globalSummon", "dropdownDuration": 200 } },
// Summon the MRU window. If the window is already in the foreground, do nothing.
{ "keys": "ctrl+6", "command": { "action": "globalSummon", "toggleVisibility": false } },
// Summon the window named "_quake". If no window with that name exists, then create a new window.
{ "keys": "ctrl+7", "command": { "action": "globalSummon", "name": "_quake" } }