SCCM - Surefire 通过其任务序列检测计算机何时完全完成安装的方法
SCCM - Surefire way of detecting when computer is fully done installing via it's task sequence
我想听听您对此的看法。我正在为自己制作一个简单的脚本,以便在 SCCM 安装完计算机时提醒我。
我想:什么是检测安装何时真正结束的好方法?
我的推理让我通过 Powershell 循环检查最后一个字符串是否存在于 :
"C:\Windows\CCM\Logs\smsts.log"
例如:
<![LOG[Successfully finalized logs to SMS client log directory from C:\WINDOWS\CCM\Logs]LOG]!><time="11:47:56.899+240" date="08-17-2018" component="OSDSetupHook" context="" type="1" thread="5644" file="tslogging.cpp:1911">
如果在该文件中找到模式 "Successfully finalized logs",系统会提示我安装已完成,然后我可以继续在该计算机上执行 运行 其他命令。
该解决方案工作正常,但我的问题是您是否会推荐任何其他可靠的方法来确定任务序列何时完全完成以及计算机何时运行?你会用什么来检测?
非常感谢您的意见。
@thom schumacher 找到了一个 link,其中包含所有需要的信息:
我想听听您对此的看法。我正在为自己制作一个简单的脚本,以便在 SCCM 安装完计算机时提醒我。
我想:什么是检测安装何时真正结束的好方法?
我的推理让我通过 Powershell 循环检查最后一个字符串是否存在于 :
"C:\Windows\CCM\Logs\smsts.log"
例如:
<![LOG[Successfully finalized logs to SMS client log directory from C:\WINDOWS\CCM\Logs]LOG]!><time="11:47:56.899+240" date="08-17-2018" component="OSDSetupHook" context="" type="1" thread="5644" file="tslogging.cpp:1911">
如果在该文件中找到模式 "Successfully finalized logs",系统会提示我安装已完成,然后我可以继续在该计算机上执行 运行 其他命令。
该解决方案工作正常,但我的问题是您是否会推荐任何其他可靠的方法来确定任务序列何时完全完成以及计算机何时运行?你会用什么来检测?
非常感谢您的意见。
@thom schumacher 找到了一个 link,其中包含所有需要的信息: