Windwosの初期値は42日間になっています。
コマンドプロンプトで変更可能です。
BAT (Batchfile)
rem 無期限に変更
net accounts /MAXPWAGE:UNLIMITED
BAT (Batchfile)
rem 42日に変更
net accounts /MAXPWAGE:42
ローカルセキュリティポリシーが変更され、全てのユーザーに適用されます。

ユーザー単位で変更することも可能です。
BAT (Batchfile)
rem 無期限に変更
wmic UserAccount where Name='ユーザー名' set PasswordExpires=False
rem 期限有に変更
wmic UserAccount where Name='ユーザー名' set PasswordExpires=TRUE
確認方法
BAT (Batchfile)
net user ユーザー名
