Skip to main content

windows定时任务管理器 即使电脑睡眠也能运行的定时任务管理器

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tschm-4.0.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file tschm-4.0.3-py3-none-any.whl.

File metadata

  • Download URL: tschm-4.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.6

File hashes

Hashes for tschm-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e90c1fca1b415f3416e33622d385e97ff1f3a5b7c05659c4c06c4fbbe5068a57
MD5 41318b690d063fa26aaeeacafa3b2e68
BLAKE2b-256 607e3ec8c3a2f9d3799b15a5bd6e1cff8a7e2b8746adc12213ec4b0197ff80a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page