10
7

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 5 years have passed since last update.

コマンドラインから「パスワードは、複雑さの要件を満たす必要がある(Password must meet complexity requirements)」ポリシーを無効にする

Last updated at Posted at 2016-01-27

背景

近頃のWindows Serverは、既定で「パスワードは、複雑さの要件を満たす必要がある」ポリシーが有効になっていて、単純な英字だけのパスワードなどを設定できません。Hyper-Vも同様です。

GUIがあればgpedit.mscから変更できますが、Hyper-VはGUIがないのでコマンドラインから作業する必要があります。

作業手順

seceditというコマンドを使います。ポリシー全体をファイルから読み込んであげるという使い方しかできないそうです。 :frowning:

1. 現在の設定をエクスポートする

secedit /export /areas SECURITYPOLICY /cfg export.inf

export.infというファイルに現在の設定をエクスポートします。

2. ファイルを変更する

System AccessというセクションにPasswordComplexityという行があるので、値を1から0に変更します。

変更前:

[System Access]
PasswordComplexity = 1

変更後:

[System Access]
PasswordComplexity = 0

3. 変更したファイルを読み込む

secedit /configure /db tmp.sdb /areas SECURITYPOLICY /cfg export.inf

以上です。 :smile:

参考

10
7
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
10
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?