アカウントのパスワード有効期限を無期限にするコマンド

wmic useraccount where name=”アカウント名” set passwordexpires=false
※ false で無期限となるので勘違いしないように!
wmic useraccount where name=”アカウント名” get passwordexpires