Skip to main content

TSCHM - Windows 任务计划管理器

一个强大的 Windows 任务计划管理工具,即使在计算机处于睡眠模式时也能执行计划任务。

功能特性

  • ✅ 在系统睡眠模式下执行计划任务
  • ✅ 通过 tsm 命令提供简洁的命令行界面
  • ✅ 轻松管理隐藏任务
  • ✅ 按需终止正在运行的计划任务

为什么选择 TSCHM?

大多数 Windows 任务管理工具在系统处于睡眠模式时无法执行任务。TSCHM 专门设计用于解决这一关键限制。

安装

通过 pip 安装:

pip install tschm -U
# 确保 scripts 文件夹已经加入path 

或使用 uv:

uv tool install tschm -U

安装完成后,您可以在终端中使用 tsm 命令。

系统要求

  • Windows 操作系统
  • Python 3.13+

使用方法

安装完成后,您可以使用 tsm 命令来管理计划任务:

tsm 
tsm --help 
tsm xxx --help 
tsm config xxx --help 


# 第一次运行 需要先执行 init 进行初始化
tsm config init 
# 然后就能添加任务了
tsm add-task test xxx.ps1 DAILY --time=21:00 # 添加一个名为test的任务 每天21点执行 xxx.ps1 脚本 
# 默认提供了4个可以用的脚本 
tsm config list
配置目录内容 (C:\Users\lppx\.tschm):
--------------------------------------------------
 1. [文件] 休眠脚本.ps1                       大小:       18 字节  修改时间: 2025-11-12 09:52:52
 2. [文件] 倒计时休眠脚本.ps1                    大小:     2126 字节  修改时间: 2025-11-12 09:52:52
 3. [文件] 倒计时关机脚本.ps1                    大小:     2099 字节  修改时间: 2025-11-12 09:52:52
 4. [文件] 关机脚本.ps1                       大小:       62 字节  修改时间: 2025-11-12 09:52:52
--------------------------------------------------

# 可以方便的设置倒计时关机 (电脑必须支持执行PS脚本)
tsm add-task shutdown 倒计时关机脚本.ps1 DAILY  --time=21:00

Metadata

Release files for tschm 4.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for tschm 4.0.3
File Interpreter ABI Platform Actions
tschm-4.0.3-py3-none-any.whl Python 3 none any Details for tschm-4.0.3-py3-none-any.whl

Release files / tschm-4.0.3-py3-none-any.whl

Download URL tschm-4.0.3-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e90c1fca1b415f3416e33622d385e97ff1f3a5b7c05659c4c06c4fbbe5068a57
BLAKE2b-256 checksum
How to use checksums
607e3ec8c3a2f9d3799b15a5bd6e1cff8a7e2b8746adc12213ec4b0197ff80a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.6

Security for tschm 4.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page