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.

preguntada hace 2 años695 visualizaciones
1 Respuesta
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.

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas