1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

EC2でWindows Server構築時のタイムゾーン設定

Last updated at Posted at 2022-09-28

はじめに

EC2でサーバー構築時にタイムゾーンがUTCとなりますが、「ユーザーデータ」という項目を設定することによって、起動時に任意の場所へ自動設定することができます。

設定する項目

タイムゾーンを日本にするPowerShellコマンド

Set-TimeZone -ID "Tokyo Standard Time"

まとめ

EC2構築時のユーザーデータとしてセットするには下記のようなXMLで記載します。

ユーザーデータ
<powershell>
Set-TimeZone -ID "Tokyo Standard Time"
</powershell>

毎回GUIで設定していましたが、ひと手間減らすことができました。

参考文献

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?