On Error Resume Next
' Connect to WMI and obtain instances of Win32_OperatingSystem
For Each objOS in GetObject("winmgmts:").InstancesOf ("Win32_OperatingSystem")
  WScript.Echo "Version = " & objOS.Version
Next

if Err <> 0 Then
  WScript.Echo Err.Description
  Err.Clear
End If

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-01-09
  • 2021-06-23
  • 2022-12-23
  • 2021-07-28
猜你喜欢
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-12-08
  • 2021-10-10
  • 2022-12-23
相关资源
相似解决方案