为域上的所有 Windows 服务器设置时区 (2008 R2)

Kyl*_*ndt 3 windows active-directory group-policy windows-server-2008-r2

有没有办法为我的域中的所有机器设置时区(也许使用组策略?)。所有的 Windows 机器都是 Server 2008 R2。

Zor*_*che 6

命令 tzutil.exe 在 Windows 7 / 2008 上可用

TZUTIL </? | /g | /s TimeZoneID[_dstoff] | /l>

Parameters:
    /? Displays usage information.

    /g Displays the current time zone ID.

    /s TimeZoneID[_dstoff]
       Sets the current time zone using the specified time zone ID.
       The _dstoff suffix disables Daylight Saving Time adjustments
       for the time zone (where applicable).

    /l Lists all valid time zone IDs and display names. The output will
       be:
           <display name>
           <time zone ID>

Examples:
    TZUTIL /g
    TZUTIL /s "Pacific Standard Time"
    TZUTIL /s "Pacific Standard Time_dstoff"
Run Code Online (Sandbox Code Playgroud)

要设置为 UTC,请使用类似TZUTIL /s "UTC".

  • 对旧的做事方式的真正改进,如果您将其设置为 GPO 中的启动脚本,它将无处不在。 (2认同)