Windows 8.1 administrators can set password expiration days for local users using Local Security Policy editor. Generally it is not advisable to set password expiration for local users accounts on a personal computer. But you can do so, if you want to create a temp account for some reason and want to restrict user on password expiration.
Step 1: Launch Computer Management console on Windows 8.1 system.
Step 2: In the Computer Management screen, navigate to Local Users and Groups section.
Step 3: Select the user for which password expiration needs to be set.
Step 4: Make sure “Password never expires” option unchecked.
Step 5: Now type secpol.msc in Run dialog (Windows Key + R). This should launch the Local Security Policy editor.
Step 6: Navigate to Password Policy under Account Policies folder. Then double click Maximum password age option and set the required days in Password will expire in field
Step 7: Click OK button to apply and save the changes to Password Policy on Windows 8.1