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 Answer
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.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions