Windows 11 Your password has expired and needs to be changed

Discussion in 'Windows 11' started by ABM, Jun 6, 2023.

  1. ABM

    ABM MDL Junior Member

    Mar 16, 2010
    97
    29
    0
    I am the only one who uses my Desktop...I do not need a password but today I was asked to change to one...How can I disable this prompt? Thank you Alan
     
  2. Dolmatov

    Dolmatov MDL Addicted

    Aug 16, 2017
    558
    486
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    secpol.msc is more direct than gpedit.msc for the intended purpose.
     
  4. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,162
    5,977
    150
    #4 Dark Dinosaur, Jun 6, 2023
    Last edited: Jun 6, 2023
    That is the first thing that I changes every new install..
    Using wmic & ps .. ... For all users
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    I just use a domain. Policies are applied as soon as the PC joins the domain, (and passwords comes from server).
     
  6. MDeaks

    MDeaks MDL Member

    Aug 25, 2017
    154
    74
    10
    Settings --> Accouts ----> Sign-in Options----> Password ----> change

    Than make sure you "Uncheck/Change" this option - see below....


    Hope this helps

    upload_2023-6-6_9-2-37.png
     

    Attached Files:

  7. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,162
    5,977
    150
    PS option
    Code:
    for specific user
    powershell -noprofile -executionpolicy bypass -command "Set-LocalUser -Name 'Administrator' -PasswordNeverExpires 1"
    for all users
    powershell -noprofile -executionpolicy bypass -command "Get-CimInStance Win32_UserAccount | Set-CimInstance -Property @{PasswordExpires=\"False\"} -PassThru"
    
    Wmic option [from Last11.Pro.x64.PE_2022H2 ISO]
    Code:
    wmic UserAccount set PasswordExpires=False
    wmic path Win32_UserAccount set PasswordExpires=False
    
    Wmic option [from abbodi1406 script]
    Code:
    FOR /F "TOKENS=2 DELIMS==" %%A IN ('"WMIC /NAMESPACE:\\ROOT\CIMV2 PATH Win32_UserAccount GET Name /VALUE"') DO (
        CALL WMIC /NAMESPACE:\\ROOT\CIMV2 PATH Win32_UserAccount WHERE Name='%%A' SET PasswordExpires=FALSE
    )
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. migascalp

    migascalp MDL Senior Member

    Sep 18, 2009
    447
    762
    10
    Little question, what is the difference with:
    Code:
    net accounts /maxpwage:unlimited
    ?