如何从命令行设置时区?

Edu*_*scu 37 windows timezone command-line wsh batch-file

如何在命令行或批处理文件中设置Windows中的时区?

我需要使用powershell或cscript吗?

Ion*_*zău 67

可帮助您更改Windows 7中的时区的命令行实用程序tzutil.exe称为Windows时区实用程序.对于喜欢在命令提示符下工作的所有人来说,这是一个很棒的工具.

使用/s参数设置时区:

tzutil /s "universal standard time"
Run Code Online (Sandbox Code Playgroud)

使用/g参数获取时区:

tzutil /g
Run Code Online (Sandbox Code Playgroud)

使用该/l参数列出有效时区.

tzutil /l
Run Code Online (Sandbox Code Playgroud)

[资源]

  • @EduardFlorinescu,欢迎你,我的罗马尼亚兄弟.;-) (3认同)
  • tzutil/s UTC也可以,感谢+ 1 /接受 (2认同)