Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.3 KiB

  1. for each os in GetObject("winmgmts:{impersonationLevel=impersonate}!").InstancesOf("Win32_OperatingSystem")
  2. WScript.Echo ""
  3. WScript.Echo "Version Info:"
  4. WScript.Echo "============"
  5. WScript.Echo " Version: ", os.Caption, os.Version
  6. WScript.Echo " Build: ", os.BuildNumber, os.BuildType
  7. WScript.Echo " CSD Version: ", os.CSDVersion
  8. WScript.Echo " Serial Number: ", os.SerialNumber
  9. WScript.Echo " Manufacturer: ", os.Manufacturer
  10. WScript.Echo ""
  11. WScript.Echo "Memory Info:"
  12. WScript.Echo "==========="
  13. WScript.Echo " Free Physical Memory: ", os.FreePhysicalMemory
  14. WScript.Echo " Free Space in Paging Files: ", os.FreeSpaceInPagingFiles
  15. WScript.Echo " Size Stored in Paging Files: ", os.SizeStoredInPagingFiles
  16. WScript.Echo " Free Virtual Memory: ", os.FreeVirtualMemory
  17. WScript.Echo " Total Virtual Memory Size: ", os.TotalVirtualMemorySize
  18. WScript.Echo " Total Visible Memory Size", os.TotalVisibleMemorySize
  19. WScript.Echo ""
  20. WScript.Echo "Time Info:"
  21. WScript.Echo "========="
  22. WScript.Echo " Current Time Zone: ", os.CurrentTimeZone
  23. WScript.Echo " Install Date: ", os.InstallDate
  24. WScript.Echo " Last Bootup Time: ", os.LastBootUpTime
  25. WScript.Echo " Local Date & Time: ", os.LocalDateTime
  26. WScript.Echo ""
  27. WScript.Echo "Process Info:"
  28. WScript.Echo "============"
  29. WScript.Echo " Foreground App Boost: ", os.ForegroundApplicationBoost
  30. WScript.Echo " Maximum #Processes: ", os.MaxNumberOfProcesses
  31. WScript.Echo " Maximum Memory Size for Processes: ", os.MaxProcessMemorySize
  32. WScript.Echo " #Processes: ", os.NumberOfProcesses
  33. WScript.Echo ""
  34. WScript.Echo "User Info:"
  35. WScript.Echo "========="
  36. WScript.Echo "#Users: ", os.NumberOfUsers
  37. WScript.Echo "Registered User: ", os.RegisteredUser
  38. WScript.Echo ""
  39. WScript.Echo "Locale Info:"
  40. WScript.Echo "==========="
  41. WScript.Echo "Code Set: ", os.CodeSet
  42. WScript.Echo "Country Code: ", os.CountryCode
  43. WScript.Echo "Locale: ", os.Locale
  44. WScript.Echo ""
  45. WScript.Echo "System Info:"
  46. WScript.Echo "==========="
  47. WScript.Echo "Boot Device: ", os.BootDevice
  48. WScript.Echo "Name: ", os.CSName
  49. WScript.Echo "Status: ", os.Status
  50. Wscript.Echo "System Device: ", os.SystemDevice
  51. WScript.Echo "System Directory: ", os.SystemDirectory
  52. WScript.Echo "Windows Directory: ", os.WindowsDirectory
  53. next