如何设置命令行的时区? [英] How do I set the timezone from command line ?

查看:416
本文介绍了如何设置命令行的时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何可以从命令行或批处理文件中设置时区在Windows?

How can I set the timezone in Windows from command line or from a batch file?

我需要使用PowerShell的或CSCRIPT?

Do I need to use powershell or cscript?

推荐答案

该命令行实用程序,可帮助您更改时区Windows 7中 tzutil.exe ,是被称为的 Windows时区实用工具的。这是所有的人一个伟大的工具,谁preFER在命令提示符下运行。

The command line utility that helps you change the time zone in Windows 7 is tzutil.exe and is known as Windows Time Zone Utility. This is a great tool for all the people who prefer working from the command prompt.

使用 / S 参数为设置时区:

tzutil /s "universal standard time"

使用 / G 参数为获得时区:

tzutil /g

使用 / L 参数为列表的有效时间段。

tzutil /l

<一个href=\"http://www.mytechguide.org/7792/set-time-zone-using-command-prompt-windows-7/\">[source]

这篇关于如何设置命令行的时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆