← 返回综合新闻
Engadget 综合新闻 2026-11-07 22:45

Windows PowerToys 可以自动执行一些更繁琐的 PC 任务

Windows PowerToys can automate some of your more tedious PC tasks

微软的免费实用程序包可以排列窗口、批量重命名文件,并且现在可以从终端编写脚本。

我们中的许多人发现我们的工作日以同样的方式开始,这种重复持续一整天。你将打开电脑,打开浏览器、Slack、WhatsApp 和 Spotify,然后在接下来的几分钟内将每个窗口拖动到大致位于昨天的位置。稍后,您将逐个重命名屏幕截图文件夹。这些都不需要很长的时间,但时间越长,Windows 也帮不上什么忙。

Microsoft PowerToys 可以处理大部分这些小杂务。它是 Windows 开发人员根据 MIT 许可在 GitHub 上维护和免费提供的 30 多个实用程序的免费集合。它可以在 Windows 11 或 Windows 10 版本 2004 及更高版本、x64 和 ARM64 PC 上运行。您可以从 Microsoft Store、GitHub 或通过命令行中的 WinGet 安装它(winget install --id Microsoft.PowerToys --source winget),并可以选择打开或关闭每个实用程序。

当然,您不需要 PowerToys。但是,如果您每天都做同样的小工作,它的一些工具将使它们变得更容易和更快。如果你只为一个模块安装它,它应该是 FancyZones。使用它的同时还可以更改设置,从而改善您的 Windows 11 体验,让您的日常电脑使用更加顺畅。

迄今为止最好的功能是 FancyZones,也是我自 2021 年购买超宽显示器以来一直在使用的功能。它将您的屏幕分成窗口捕捉到的“区域”。安装 PowerToys 后,按 Win + Shift + `(反引号键)打开布局编辑器。在那里,选择一个模板或选择创建新布局来构建网格(您可以分割和合并)或画布(其中区域可以重叠)。

如果该快捷方式从一开始就不起作用,请通过在“开始”菜单中搜索它来打开 PowerToys,然后在“主页”选项卡上启用 FancyZones 滑块。

创建布局或选择模板后,按住 Shift 键并拖动窗口,区域就会亮起;将其放在其中一个上,它会自动调整大小以适应。这意味着您一直使用的每个应用程序都可以在您的视线中拥有固定的位置,而打开“将新创建的窗口移动到最后一个已知区域”会将应用程序每次重新打开时发送回其区域。

您还可以为自定义布局指定一个数字,然后使用 Win + Ctrl + Alt 加该数字来应用它。

Workspaces 实用程序更进一步,自动为您打开应用程序。按 Win + Ctrl + ` 启动其编辑器(如果这不起作用,请在 PowerToys 中启用它),选择“创建工作区”,安排您的应用程序并点击“捕获”。然后,您可以向每个应用程序添加命令行参数并将设置保存为桌面快捷方式。

请记住,PowerToys 无法告诉应用程序在哪里打开,因此它会启动每个应用程序,然后将其移动到位。您会看到窗口在加载时跳入到位。

PowerRename 可以一次重命名数百个文件。通过左键单击并拖动来批量选择它们,然后右键单击并选择“使用 PowerRename 重命名”选项。您将获得搜索和替换字段以及每个新名称的预览。您可以使用正则表达式、从任意数字开始的计数器以及提取每个文件的创建日期的变量。对于照片,它可以读取 EXIF 数据,因此可以将充满 IMG_ 文件的文件夹重命名为每张照片的拍摄日期和拍摄相机。如果你弄错了,只需按 Ctrl + Z 整个批次即可。

与此同时,键盘管理器会在 Windows 上或特定应用程序内重新映射按键和快捷键,并通过进程名称进行识别,例如 Edge 的 msedge.exe。快捷方式还可以扩展文本、打开 URL 或启动应用程序,而单独点击重新映射可以让单独按下的键执行不同的操作,同时在快捷方式组合中仍然正常工作。不过,某些核心组合(如 Win + L 和 Ctrl + Alt + Del)无法重新映射。仅当 PowerToys 在系统托盘中运行时,重新映射才起作用,与其他重新映射方法相比,如果需要,可以轻松暂时禁用它们。

Command Palette 是 Microsoft 于 2025 年推出的 PowerToys Run 的下一代版本,它是一个启动器。按 Win + Alt + Space 并开始键入以打开应用程序、计算总和、在 > 之后运行命令或在 ?? 之后搜索网络。它本质上是一个快速访问工具架,将您最喜欢的命令固定在搜索框下,可通过 Alt + 1 到 Alt + 9 启动。不过,如果您愿意,仍然可以包含“运行”。

您还可以从终端控制 PowerToys,为您提供自动化工作的选项,而不仅仅是加快工作速度。其 0.102 版本添加了用于高级粘贴、灯光开关、Peek、PowerDisplay 和 PowerToys 设置的命令行工具。它还将 FancyZones、Image Resizer、File Locksmith 和 PowerDisplay 命令放在系统路径上,以便它们可以从任何文件夹运行。

例如,即使 PowerToys 未运行,设置工具也可以打开和关闭各个实用程序,并且单个命令行(PowerToys.FancyZones.CLI.exe 的 columns --all)可立即将列布局应用于每个显示器。这些命令可以通过任务计划程序(Windows 11 的内置自动化工具)在无人值守的情况下运行。将任务的“启动程序”操作指向 PowerToys 命令,并将其设置为在登录时或按计划触发,除其他用途外,还可以在您登录时应用您的 FancyZones 布局。

至于 PowerToys 是否会降低您的 PC 速度,它的一些实用程序会在后台运行一个辅助进程,以便它们立即打开,即使您不使用它们,也会占用内存。微软还警告称,键盘管理器可能会损害游戏性能,并且 FancyZones 在拖动时在所有显示器上显示区域的选项可能会影响性能。关闭任何不使用的实用程序,就不会有问题。

原文(English)

Microsoft's free utility pack arranges windows, renames files in bulk and can now be scripted from the terminal.

Many of us find our workdays starting the same way, with that repetition continuing throughout the day. You'll switch your PC on, open your browser, Slack, WhatsApp and Spotify, then spend the next couple minutes dragging each window to sit roughly where it was yesterday. Later, you'll rename a folder of screenshots one after the other. None of it takes terribly long, but it adds up, and Windows doesn't do much to help.

Microsoft PowerToys can handle most of these little chores. It's a free collection of more than 30 utilities that the Windows developer maintains and offers for free on GitHub under an MIT license. It runs on Windows 11 or Windows 10 version 2004 and newer, on both x64 and ARM64 PCs. You can install it from the Microsoft Store, GitHub or via WinGet in the command line (winget install --id Microsoft.PowerToys --source winget), and have the option to toggle each utility within on or off.

Sure, you don't need PowerToys. But if you do the same small jobs every day, a handful of its tools will make them a little bit easier and quicker. If you only install it for one module, it should be FancyZones. Using it goes alongside changing settings that improve your Windows 11 experience to make your everyday PC use better.

The best feature by far, and one I've been using since I bought my ultrawide monitor in 2021, is FancyZones. It splits your screen into "zones" that windows snap into. Once you've installed PowerToys, press Win + Shift + ` (the backtick key) to open the layout editor. There, pick a template or select Create new layout to build a Grid (which you divide and merge) or a Canvas (where zones can overlap).

If that shortcut doesn't work from the start, open PowerToys by searching for it in the Start menu, then on the Home tab, enable the slider for FancyZones.

Once you've created a layout or chosen a template, hold Shift while dragging a window and the zones light up; drop it on one and it'll automatically resize to fit. That means each app you use all the time can have a fixed spot in your eyeline, while turning on Move newly created windows to the last known zone sends apps back to their zones every time they reopen.

You're also able to give custom layouts a number, then apply it with Win + Ctrl + Alt plus that number.

The Workspaces utility goes a step further by automatically opening the apps for you. Press Win + Ctrl + ` to launch its editor (enable it in PowerToys if this doesn't do anything), select Create workspace, arrange your apps and hit Capture. You can then add command-line arguments to each app and save the setup as a desktop shortcut.

Bear in mind that PowerToys can't tell an app where to open, so it launches each one then moves it into position. You'll see the windows jump into place as they load.

PowerRename can rename hundreds of files at once. Select them in bulk by left-clicking and dragging, then right-click and choose the Rename with PowerRename option. You'll get search and replace fields with a preview of each new name. You can use regular expressions, counters that start from any number and variables that pull in each file's creation date. For photos, it can read EXIF data, so a folder full of IMG_ files can be renamed to the date each shot was taken and the camera it was taken with. If you get it wrong, just Ctrl + Z the entire batch.

Keyboard Manager, meanwhile, remaps keys and shortcuts across Windows or inside specific apps, which it identifies by process name, such as msedge.exe for Edge. A shortcut can also expand text, open a URL or launch an app, while tap-alone remaps let a key pressed by itself do something different while still working normally inside shortcut combos. Some core combinations like Win + L and Ctrl + Alt + Del can't be remapped, though. The remaps only work when PowerToys is running in the system tray, making them easy to disable temporarily if needed compared to other remapping methods.

Command Palette, which Microsoft introduced in 2025 as the next iteration of PowerToys Run, is a launcher. Hit Win + Alt + Space and begin typing to open an app, work out a sum, run a command after a > or search the web after ??. It's essentially a quick-access shelf that pins your favorite commands under the search box, launchable with Alt + 1 through Alt + 9. Run is still included if you prefer it, though.

You can also control PowerToys from the terminal, giving you options to automate work rather than just speeding it up. Its 0.102 release added command-line tools for Advanced Paste, Light Switch, Peek, PowerDisplay and the PowerToys settings. It also put the FancyZones, Image Resizer, File Locksmith and PowerDisplay commands on the system PATH so they run from any folder.

The settings tool, for example, can turn individual utilities on and off even when PowerToys isn't running, and a single command line — PowerToys.FancyZones.CLI.exe s columns --all — applies the columns layout to every monitor at once. Those commands can run unattended with the Task Scheduler, Windows 11's built-in automation tool. Point a task's Start a program action at a PowerToys command and set it to fire at logon or on a schedule which, among other uses, can apply your FancyZones layout as you sign in.

As for whether PowerToys slows your PC down, some of its utilities keep a helper process running in the background so they open instantly, which uses memory even when you're not using them. Microsoft also warns that Keyboard Manager can hurt performance in games and that FancyZones' options to show zones on all monitors while dragging may affect performance. Switch off any utility you don't use, and you shouldn't have a problem.

本文为自动翻译,可能存在偏差,请以原文为准。发布于 2026-11-07 22:45

阅读原文 ↗https://www.engadget.com/2305351/windows-powertoys-automate-