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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠