To turn off password expiration on windows 8.1/8/7, type the command and press enter: wmic path Win32_UserAccount where Name='username' set PasswordExpires=true Taip ra