python - How to disable task from windows task scheduler via python script
问题描述
I want to disable GoogleUpdateTaskMachineUA task from windows task scheduler via python script. Here's the image of Disable option button in task scheduler
I tried using subprocess:
p = subprocess.Popen(['schtasks.exe', '/Change', '/TN', 'GoogleUpdateTaskMachineUA',
'/DISABLE'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
But, it didn't work out. Is there any way to do it?
解决方案
推荐阅读
- mysql - mysql 服务器无法在 Ubuntu 18.04 上安装
- javascript - 加载 chrome 扩展并查找当前网站 javascript
- flutter - 限制collection().get()的数量
- c# - 不支持关键字:尝试更新数据库时的“端口”
- html - CSS 变换比例也增加 div 父体
- session - 如何在flurl中的同一会话中使用两个调用
- django-two-factor-auth - 两因素发行人
- java - 无需使用 OptaPlanner 定义 xml 配置即可实现分区搜索
- python - 通过在现有列中应用算术函数来创建新列
- unit-testing - 来自 jupyter 笔记本中断言的 Pytest 样式输出