有人有一个脚本/或可以帮助我检查,是否有可用的服务器的Windows更新?Windows更新检查与vbscript
因此,当黄色更新图标位于任务栏中时,我将收到一封邮件。
我的想法是:发送邮件,如果wuauclt.exe在任务栏中超过10分钟。
但我不知道这样做。
我发现只有这个:
Dim strComputer, strProcess
Do
strProcess = inputbox("Please enter the name of the process (for instance: explorer.exe)", "Input")
Loop until strProcess <> ""
Do
strComputer = inputbox("Please enter the computer name", "Input")
Loop until strComputer <> ""
If(IsProcessRunning(strComputer, strProcess) = True) Then
WScript.Echo "Process " & strProcess & " is running on computer " & strComputer
Else
WScript.Echo "Process " & strProcess & " is NOT running on computer " & strComputer
End If
感谢您的帮助。
你能解释一下你的代码吗? – Sebastian 2010-07-07 08:45:32
@matthias:我在代码中添加了一些注释。 – Tester101 2010-07-08 18:23:04
谢谢,这是一个很好的代码... – Sebastian 2010-07-12 12:16:37