I have an XP workstation that is not part of a domain. It is a member of a workgroup. When I try to login under one user, I get the error message, "Your account has expired. Please contact your system administrator".

I have multiple users setup on the workstation, so I am able to login, but I can't find out why it's expired. I can't find a local group policy for it anywhere and I went through all of the local users settings, and couldn't find anything.

Any ideas on how to fix this???

Dani AI

Generated

Short answer: the message means the local account itself has an expiration date set. was right to inspect the account metadata — that output will show an "Account expires" value and you can clear it. For a standalone/workgroup PC this is a local account property (not an AD/domain setting). (learn.microsoft.com)

If the machine is XP Professional (Computer Management available) the quickest GUI fix is to open the Local Users and Groups snap‑in and edit the user properties: Computer Management -> System Tools -> Local Users and Groups -> Users -> double‑click the username -> General tab -> set Account expires to Never (or pick a new date). You can launch the management console directly with compmgmt.msc. This is the standard local-account management path. (learn.microsoft.com)

If the Local Users and Groups MMC is not available (or you cannot log on as an admin), use the built‑in Administrator via Safe Mode: reboot, press F8, choose Safe Mode, log on as Administrator and change the affected account (or create a temporary local admin to fix it). If you do have any other administrator account you can use that to edit the expired user from Control Panel or Computer Management. The Safe Mode Administrator path is the recommended recovery route when you are otherwise locked out. (learn.microsoft.com)

Quick troubleshooting checklist (in order): 1) Confirm you are editing a local account (not a domain account). 2) Check that the account is Active/not Disabled and that "Logon hours" or "Workstations allowed" are not restricting sign‑in. 3) Verify whether the problem is password expiry vs account expiry (those are separate fields in the account details). 4) If the GUI is inaccessible, use an admin session (Safe Mode or another admin user) to correct the expiration or create a new admin to repair the account. The Microsoft command‑line net user is precisely the CLI tool that shows these fields and was the approach used; it is documented on Microsoft Docs. (learn.microsoft.com)

If those steps do not resolve it, capture the exact account output (from another admin session) and any Security log events for the failed logon — that info makes it straightforward to pinpoint whether the account record, password policy, or something else (scripts/tools that set temporary accounts) is to blame. (learn.microsoft.com)

net user username
//SHOWS USER ACCOUNT EXPIRATION

net user username /EXPIRES:NEVER
//SETS THE ACCOUNT TO NEVER EXPIRE

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.