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 réponse
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.

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions