Can we set to Password never expires With EC Instance Windows Server 2016 using puppet script

0

Can we set to Password never expires With EC Instance Windows Server 2016 using puppet script? As per AWS documentation, came to know that With Windows Server 2016 and later, Password never expires is disabled for the local administrator. With Windows Server 2012 R2 and earlier, Password never expires is enabled for the local administrator.

1 回答
1

Hi there

Yes you can set the local user account password to be never expired on Windows Server 2016 and later. By following these steps .

1 RDP to your windows instance.

2 start puppet cmd

3 Type the following command

   wmic UserAccount where "Name='username'" set PasswordExpires=False

and press Enter key. Replace the username with your administrator. When it shows "Property(s) update successful", the user’s password expiration is disabled. To check that you are successfully change your password never expired type the following command:

                 net user administrator

Now you can see that your password expires NEVER.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则