You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求协助测试与修正网络计算机最后重启时间检测.bat脚本

Need Help Testing/Revising Two Remote System Info Batch Scripts

Hey everyone,

I'm an intern at a software company, and I've been assigned to write two .bat scripts for our network:

  • One that checks the last reboot time of specific computers on the network
  • Another that pulls the last Windows update time from remote machines

The catch is, I don't have access to the target computers right now, so I can't run any tests on these scripts to make sure they work as intended. I'm reaching out to see if anyone here can help me test them out, or spot and fix any issues that might be hiding in the code. Any help would be really appreciated!

Quick Note

I realize I haven't included the full script code yet—my bad! I'll drop both complete scripts below right away, but here's the general structure I used for each to give you a head start:

Last Reboot Time Script Outline

@echo off
setlocal enabledelayedexpansion
REM Used WMIC to query Win32_OperatingSystem for LastBootUpTime
REM Added logic to convert WMI's datetime format to a human-readable timestamp
REM Included basic handling for cases where the remote machine is unreachable

Last Update Time Script Outline

@echo off
setlocal enabledelayedexpansion
REM Queried Win32_QuickFixEngineering for the latest HotFixInstallDate
REM Filtered results to isolate the most recent update entry
REM Added error messaging for access denied or connection failures

I'll edit this post with the full, exact script code in just a minute. In the meantime, if you have any general tips for remote batch scripting that I might have overlooked, those would be incredibly helpful too!


内容的提问来源于stack exchange,提问作者M.BelleK

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:43:12