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.

27 lines
1.4 KiB

  1. set TimeZones = GetObject("winmgmts:{impersonationLevel=impersonate}").instancesof("Win32_TimeZone")
  2. for each TimeZone in TimeZones
  3. WScript.Echo "Standard Name = " & TimeZone.StandardName
  4. WScript.Echo "Bias = " & TimeZone.Bias
  5. WScript.Echo "Standard Bias = " & TimeZone.StandardBias
  6. WScript.Echo "Standard Year = " & TimeZone.StandardYear
  7. WScript.Echo "Standard Month = " & TimeZone.StandardMonth
  8. WScript.Echo "Standard Day = " & TimeZone.StandardDay
  9. WScript.Echo "Standard Day of Week = " & TimeZone.StandardDayOfWeek
  10. WScript.Echo "Standard Hour = " & TimeZone.StandardHour
  11. WScript.Echo "Standard Minute = " & TimeZone.StandardMillisecond
  12. WScript.Echo "Standard Second = " & TimeZone.StandardSecond
  13. WScript.Echo "Standard Millisecond = " & TimeZone.StandardMillisecond
  14. WScript.Echo "Daylight Name = " & TimeZone.DaylightName
  15. WScript.Echo "Daylight Bias = " & TimeZone.DaylightBias
  16. WScript.Echo "Daylight Year = " & TimeZone.DaylightYear
  17. WScript.Echo "Daylight Month = " & TimeZone.DaylightMonth
  18. WScript.Echo "Daylight Day = " & TimeZone.DaylightDay
  19. WScript.Echo "Daylight Day of Week = " & TimeZone.DaylightDayOfWeek
  20. WScript.Echo "Daylight Hour = " & TimeZone.DaylightHour
  21. WScript.Echo "Daylight Minute = " & TimeZone.DaylightMillisecond
  22. WScript.Echo "Daylight Second = " & TimeZone.DaylightSecond
  23. WScript.Echo "Daylight Millisecond = " & TimeZone.DaylightMillisecond
  24. next