Hello,
Thank you for posting the question on Microsoft Windows forum!
Based on your query of disabling the "Password Never Expires" option for local user account in Windows 10 or 11? You can follow the below methods.
Method 1 Using GUID:
- You must be signed in as an administrator.
- On command prompt, type lusrmgr.msc to open Local Users and Groups
- Click/tap on the Users folder in the left pane.
- Double click/tap on the name of the Local account you want to apply this setting.
- In the General tab, check (disable - default) or uncheck (enable) Password never expires for what you want, and click/tap on OK.
- You can now close Local Users and Groups.
Method 2 Using Powershell
- Run the following Powershell commands with Administrative Mode , press Enter. (Apply to all existing local accounts) Get-LocalUser | Set-LocalUser -PasswordNeverExpires $true
- (Apply to specific local account) Set-LocalUser -Name 'user name' -PasswordNeverExpires $true
Hope the above information is helpful!