powershell - 如何在 Windows 7 上安装 ScheduledTasks 模块

标签 powershell

是否可以安装this module在不同于 Windows 8 和 Windows Server 2012 的操作系统上附带 PS v3.0++?

我知道所有 PS 替代品,但没有一个像提到的模块(PowerShell Pack 的 TaskScheduler、ScheduledJobs、schtasks 等)那么完整。

如此重要的模块不能安装在旧系统上,这违反了逻辑。

最佳答案

你运气不好。见 the explanation here .为了完整起见,我将发布一部分:

The long answer is that you can’t because, for the most part, those modules are based on CIM (WMI) classes that were introduced in Windows 8 or 8.1. A lot of the system management functionality you see in modern Windows is based on CIM classes that then use the CDXML approach to create PowerShell modules. Installing the new CIM classes on Windows 7 is not possible – so you can’t get the modules on which they are based.

关于powershell - 如何在 Windows 7 上安装 ScheduledTasks 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22643753/

相关文章:

powershell - 将日期转换为正确的格式

powershell - 如何输出到日志文件

sql - 如何通过Powershell将参数传递给SQL脚本

powershell - 如何使用 PowerShell 将文件移至回收站?

PowerShell - 如何使用另一个变量调用变量?

Python argparse 无法正确处理 Windows 中的路径

powershell - Powershell ISE中脚本 block 的奇怪问题:将其字符串表示形式粘贴到记事本中会显示意外字符

iis - 使用 PowerShell 构建 Active Directory 条目在 IIS 6 中有效,但在 IIS 7 中无效

mysql - 由于 < 字符,无法在 Powershell 上运行数据库还原

Windows CMD/BATCH 保留最新的日期戳文件