在客户端机器上获取 SCCM 任务序列状态

问题描述 投票:0回答:0

我正在 azure 中创建一个 Windows 虚拟机,并想执行一个 Powershell 脚本来执行以下任务:

  1. 安装 SCCM 客户端
  2. 重新启动,SCCM 任务序列将在几分钟后启动。
  3. 等待任务序列完成
  4. 额外任务1
  5. 额外任务2 ....

我的问题是,在步骤 3 的等待时间内,如何使用 Powershell 和 CIM 类/WMI 检查任务序列是否完成?

powershell wmi sccm cim
© www.soinside.com 2019 - 2024. All rights reserved.